From 220a61f821ad591497b053f66a69f708d8e89c7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 22 May 2010 09:39:30 +0200 Subject: [PATCH] videorate: Fixate the interlaced field if necessary Fixes bug #619310. --- gst/videorate/gstvideorate.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/videorate/gstvideorate.c b/gst/videorate/gstvideorate.c index 0aaf069215..29f72f0132 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;