mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
deinterlace: call default query handlers
Call the default query handler instead of forwarding the query blindly. Fixes issues of strides because of proxying the allocation query wrongly.
This commit is contained in:
parent
d154743949
commit
f1ef3b4983
1 changed files with 4 additions and 21 deletions
|
@ -2507,19 +2507,10 @@ gst_deinterlace_sink_query (GstPad * pad, GstObject * parent, GstQuery * query)
|
|||
res = TRUE;
|
||||
break;
|
||||
}
|
||||
default:{
|
||||
GstPad *peer = gst_pad_get_peer (self->srcpad);
|
||||
|
||||
if (peer) {
|
||||
res = gst_pad_query (peer, query);
|
||||
gst_object_unref (peer);
|
||||
} else {
|
||||
res = FALSE;
|
||||
}
|
||||
default:
|
||||
res = gst_pad_query_default (pad, parent, query);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@ -2643,17 +2634,9 @@ gst_deinterlace_src_query (GstPad * pad, GstObject * parent, GstQuery * query)
|
|||
}
|
||||
break;
|
||||
}
|
||||
default:{
|
||||
GstPad *peer = gst_pad_get_peer (self->sinkpad);
|
||||
|
||||
if (peer) {
|
||||
res = gst_pad_query (peer, query);
|
||||
gst_object_unref (peer);
|
||||
} else {
|
||||
res = FALSE;
|
||||
}
|
||||
default:
|
||||
res = gst_pad_query_default (pad, parent, query);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
|
|
Loading…
Reference in a new issue