summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrashant Gotarne <ps.gotarne@samsung.com>2015-07-16 09:48:46 +0530
committerTim-Philipp Müller <tim@centricular.com>2016-05-27 20:32:08 +0100
commit4bdd192fb342bee9394bc4013b9fc563dc035649 (patch)
tree2939920e22eacd2e060c4074ed581528716a6473
parenteaf329d39bef5acdad7748f74b81c7ad2856ae00 (diff)
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
-rw-r--r--gst/multifile/gstmultifilesrc.c3
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: