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
This commit is contained in:
Tim-Philipp Müller 2017-01-23 19:45:05 +00:00
parent d6c0e9072b
commit f9d110f596

View file

@ -1011,8 +1011,12 @@ gst_video_rate_query (GstBaseTransform * trans, GstPadDirection direction,
gst_object_unref (peer); gst_object_unref (peer);
break; break;
} }
/* Simple fallthrough if we don't have a latency or not a peer that we /* Simple fall back if we don't have a latency or a peer that we
* can't ask about its latency yet.. */ * can ask about its latency yet.. */
res =
GST_BASE_TRANSFORM_CLASS (parent_class)->query (trans, direction,
query);
break;
} }
case GST_QUERY_DURATION: case GST_QUERY_DURATION:
{ {