mpeg2dec: Use new gst_video_decoder_set_needs_format() API
authorSebastian Dröge <sebastian@centricular.com>
Thu, 5 Dec 2013 10:44:10 +0000 (11:44 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 5 Dec 2013 10:44:10 +0000 (11:44 +0100)
ext/mpeg2dec/gstmpeg2dec.c

index 811e0525595d6af8dd78166396e560a2fe3776df..16f9b8b03551fce4d696dba5c0c1193fd494b11e 100644 (file)
@@ -134,6 +134,7 @@ static void
 gst_mpeg2dec_init (GstMpeg2dec * mpeg2dec)
 {
   gst_video_decoder_set_packetized (GST_VIDEO_DECODER (mpeg2dec), TRUE);
+  gst_video_decoder_set_needs_format (GST_VIDEO_DECODER (mpeg2dec), TRUE);
 
   /* initialize the mpeg2dec acceleration */
 }