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
This commit is contained in:
Prashant Gotarne 2015-07-16 09:48:46 +05:30 committed by Tim-Philipp Müller
parent eaf329d39b
commit 4bdd192fb3

View file

@ -258,7 +258,8 @@ gst_multi_file_src_query (GstBaseSrc * src, GstQuery * query)
switch (format) { switch (format) {
case GST_FORMAT_BUFFERS: case GST_FORMAT_BUFFERS:
case GST_FORMAT_DEFAULT: 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; res = TRUE;
break; break;
default: default: