From f9d110f596e3a81722e8af1586fea633f8d6741c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 23 Jan 2017 19:45:05 +0000 Subject: [PATCH] videorate: fix LATENCY query The latency query originally had a fallthrough to the default label at the end as fallback, but that got messed up when the DURATION and POSITION queries were added, so it then fell through to the duration query handler instead. Restore original behaviour. https://bugzilla.gnome.org/show_bug.cgi?id=699077 --- gst/videorate/gstvideorate.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gst/videorate/gstvideorate.c b/gst/videorate/gstvideorate.c index 8b5c9943cc..e7ffc74299 100644 --- a/gst/videorate/gstvideorate.c +++ b/gst/videorate/gstvideorate.c @@ -1011,8 +1011,12 @@ gst_video_rate_query (GstBaseTransform * trans, GstPadDirection direction, gst_object_unref (peer); break; } - /* Simple fallthrough if we don't have a latency or not a peer that we - * can't ask about its latency yet.. */ + /* Simple fall back if we don't have a latency or a peer that we + * can ask about its latency yet.. */ + res = + GST_BASE_TRANSFORM_CLASS (parent_class)->query (trans, direction, + query); + break; } case GST_QUERY_DURATION: {