videorate: Fixate the interlaced field if necessary
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 22 May 2010 07:39:30 +0000 (09:39 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 22 May 2010 07:53:18 +0000 (09:53 +0200)
Fixes bug #619310.

gst/videorate/gstvideorate.c

index 0aaf069..29f72f0 100644 (file)
@@ -345,6 +345,10 @@ gst_video_rate_setcaps (GstPad * pad, GstCaps * caps)
         videorate->from_rate_numerator = rate_numerator;
         videorate->from_rate_denominator = rate_denominator;
       }
+
+      if (gst_structure_has_field (structure, "interlaced"))
+        gst_structure_fixate_field_boolean (structure, "interlaced", FALSE);
+
       gst_pad_set_caps (otherpad, caps);
       gst_caps_unref (caps);
       ret = TRUE;