From: Prashant Gotarne Date: Thu, 16 Jul 2015 04:18:46 +0000 (+0530) Subject: multifilesrc: set position as offset from start-index X-Git-Tag: 1.19.3~509^2~2750 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4bdd192fb342bee9394bc4013b9fc563dc035649;p=platform%2Fupstream%2Fgstreamer.git 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 --- diff --git a/gst/multifile/gstmultifilesrc.c b/gst/multifile/gstmultifilesrc.c index 07707e2..fd24642 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: