summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2010-05-22 09:39:30 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2010-05-22 09:53:18 +0200
commit220a61f821ad591497b053f66a69f708d8e89c7a (patch)
tree14c23530edfa56d398ce2b5259ffc627614302d6
parent760ae91ec351ea0e6af5ebf8e6fc5f1c15dc5539 (diff)
videorate: Fixate the interlaced field if necessary
Fixes bug #619310.
-rw-r--r--gst/videorate/gstvideorate.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/videorate/gstvideorate.c b/gst/videorate/gstvideorate.c
index 0aaf06921..29f72f013 100644
--- a/gst/videorate/gstvideorate.c
+++ b/gst/videorate/gstvideorate.c
@@ -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;