mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
vadeinterlace: Fix passthrough latency query
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3038>
This commit is contained in:
parent
ec291ce6bb
commit
f720a5dd66
1 changed files with 2 additions and 4 deletions
|
@ -645,15 +645,13 @@ gst_va_deinterlace_query (GstBaseTransform * trans, GstPadDirection direction,
|
|||
{
|
||||
GstVaDeinterlace *self = GST_VA_DEINTERLACE (trans);
|
||||
|
||||
if (direction == GST_PAD_SRC && GST_QUERY_TYPE (query) == GST_QUERY_LATENCY) {
|
||||
if (direction == GST_PAD_SRC && GST_QUERY_TYPE (query) == GST_QUERY_LATENCY
|
||||
&& !gst_base_transform_is_passthrough (trans)) {
|
||||
GstPad *peer;
|
||||
GstClockTime latency, min, max;
|
||||
gboolean res = FALSE;
|
||||
gboolean live;
|
||||
|
||||
if (gst_base_transform_is_passthrough (trans))
|
||||
return FALSE;
|
||||
|
||||
peer = gst_pad_get_peer (GST_BASE_TRANSFORM_SINK_PAD (trans));
|
||||
if (!peer)
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue