avdeinterlace: fix up output caps for new field as well

And presumably our output is always progressive and not
interlaced any more?
This commit is contained in:
Tim-Philipp Müller 2012-07-17 12:33:16 +01:00
parent ad04636c6e
commit 4e784f0d0e

View 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);