avdeinterlace: fix up output caps for new field as well
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 17 Jul 2012 11:33:16 +0000 (12:33 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 17 Jul 2012 11:35:03 +0000 (12:35 +0100)
And presumably our output is always progressive and not
interlaced any more?

ext/ffmpeg/gstffmpegdeinterlace.c

index 0e39400..69e1724 100644 (file)
@@ -226,8 +226,8 @@ gst_ffmpegdeinterlace_sink_setcaps (GstPad * pad, GstCaps * caps)
       deinterlace->height);
 
   src_caps = gst_caps_copy (caps);
-  gst_caps_set_simple (src_caps, "interlaced", G_TYPE_BOOLEAN,
-      deinterlace->interlaced, NULL);
+  gst_caps_set_simple (src_caps, "interlace-mode", G_TYPE_STRING,
+      deinterlace->interlaced ? "progressive" : imode, NULL);
   ret = gst_pad_set_caps (deinterlace->srcpad, src_caps);
   gst_caps_unref (src_caps);