From 4bdd192fb342bee9394bc4013b9fc563dc035649 Mon Sep 17 00:00:00 2001 From: Prashant Gotarne Date: Thu, 16 Jul 2015 09:48:46 +0530 Subject: multifilesrc: set position as offset from start-index query position in GST_FORMAT_BUFFER returns offset from start-index rather than index. https://bugzilla.gnome.org/show_bug.cgi?id=752462 --- gst/multifile/gstmultifilesrc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/multifile/gstmultifilesrc.c b/gst/multifile/gstmultifilesrc.c index 07707e228..fd2464246 100644 --- a/gst/multifile/gstmultifilesrc.c +++ b/gst/multifile/gstmultifilesrc.c @@ -258,7 +258,8 @@ gst_multi_file_src_query (GstBaseSrc * src, GstQuery * query) switch (format) { case GST_FORMAT_BUFFERS: case GST_FORMAT_DEFAULT: - gst_query_set_position (query, GST_FORMAT_BUFFERS, mfsrc->index); + gst_query_set_position (query, format, + mfsrc->index - mfsrc->start_index); res = TRUE; break; default: -- cgit v1.2.3