From: Matthieu Bouron Date: Thu, 16 Jan 2014 11:26:41 +0000 (+0000) Subject: deinterlace: do not try set deinterlace method if passthrough is enabled X-Git-Tag: 1.19.3~509^2~4862 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=200eb7498d01937685a0e2d48df4d7b7b62e83d6;p=platform%2Fupstream%2Fgstreamer.git deinterlace: do not try set deinterlace method if passthrough is enabled Fixes an issue with progressive content and unsupported video formats for the deinterlace method. https://bugzilla.gnome.org/show_bug.cgi?id=719636 --- diff --git a/gst/deinterlace/gstdeinterlace.c b/gst/deinterlace/gstdeinterlace.c index 800bb08..7b00b11 100644 --- a/gst/deinterlace/gstdeinterlace.c +++ b/gst/deinterlace/gstdeinterlace.c @@ -2472,8 +2472,10 @@ gst_deinterlace_setcaps (GstDeinterlace * self, GstPad * pad, GstCaps * caps) self->field_duration = 0; } - gst_deinterlace_set_method (self, self->method_id); - gst_deinterlace_method_setup (self->method, &self->vinfo); + if (!self->passthrough) { + gst_deinterlace_set_method (self, self->method_id); + gst_deinterlace_method_setup (self->method, &self->vinfo); + } GST_DEBUG_OBJECT (pad, "Sink caps: %" GST_PTR_FORMAT, caps); GST_DEBUG_OBJECT (pad, "Src caps: %" GST_PTR_FORMAT, srccaps);