summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorEdward Hervey <edward.hervey@collabora.co.uk>2012-05-15 09:45:08 +0200
committerEdward Hervey <edward.hervey@collabora.co.uk>2012-05-15 09:58:55 +0200
commita2c29123887576267fedfbd932d8e140c8511122 (patch)
tree0580c26a3eb95d5f5896762ab058423ed5a129b2 /ext
parentdeb15d7bce649f06defc8aea2effae043e3efeb0 (diff)
jpegdec: Use non-packetized behaviour by default
This ensures that if we receive raw data (i.e. without caps), the parsing methods get called.
Diffstat (limited to 'ext')
-rw-r--r--ext/jpeg/gstjpegdec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/jpeg/gstjpegdec.c b/ext/jpeg/gstjpegdec.c
index a7e3b3383..54ea8d509 100644
--- a/ext/jpeg/gstjpegdec.c
+++ b/ext/jpeg/gstjpegdec.c
@@ -380,6 +380,11 @@ gst_jpeg_dec_init (GstJpegDec * dec, GstJpegDecClass * class)
gst_element_add_pad (GST_ELEMENT (dec), dec->srcpad);
#endif
+ /* By default, handle non-packetized input. If set_format gets called, we'll
+ * figure out a better way to handle this
+ */
+ gst_video_decoder_set_packetized (GST_VIDEO_DECODER (dec), FALSE);
+
/* setup jpeglib */
memset (&dec->cinfo, 0, sizeof (dec->cinfo));
memset (&dec->jerr, 0, sizeof (dec->jerr));