mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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
This commit is contained in:
parent
85501e6c2a
commit
200eb7498d
1 changed files with 4 additions and 2 deletions
|
@ -2472,8 +2472,10 @@ gst_deinterlace_setcaps (GstDeinterlace * self, GstPad * pad, GstCaps * caps)
|
||||||
self->field_duration = 0;
|
self->field_duration = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_deinterlace_set_method (self, self->method_id);
|
if (!self->passthrough) {
|
||||||
gst_deinterlace_method_setup (self->method, &self->vinfo);
|
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, "Sink caps: %" GST_PTR_FORMAT, caps);
|
||||||
GST_DEBUG_OBJECT (pad, "Src caps: %" GST_PTR_FORMAT, srccaps);
|
GST_DEBUG_OBJECT (pad, "Src caps: %" GST_PTR_FORMAT, srccaps);
|
||||||
|
|
Loading…
Reference in a new issue