diff options
-rw-r--r-- | gst/multifile/gstmultifilesrc.c | 3 |
1 files changed, 2 insertions, 1 deletions
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: |