From: Thibault Saunier Date: Mon, 3 Nov 2014 17:27:21 +0000 (+0100) Subject: basesink: Answer the query position when receiving it from upstream X-Git-Tag: 1.6.1~681 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=56606c52648d9dc3bbff9405fc097f312307e35d;p=platform%2Fupstream%2Fgstreamer.git basesink: Answer the query position when receiving it from upstream Currently we are just returning FALSE, but we do have the information we should just answer the query the same way as when answering through the GstElement.query vmethod default implementation. https://bugzilla.gnome.org/show_bug.cgi?id=739580 --- diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c index aa24f98..e0d5ac4 100644 --- a/libs/gst/base/gstbasesink.c +++ b/libs/gst/base/gstbasesink.c @@ -4852,6 +4852,11 @@ gst_base_sink_default_query (GstBaseSink * basesink, GstQuery * query) res = TRUE; break; } + case GST_QUERY_POSITION: + { + res = default_element_query (GST_ELEMENT (basesink), query); + break; + } default: res = gst_pad_query_default (basesink->sinkpad, GST_OBJECT_CAST (basesink),