mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 06:26:23 +00:00
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:
parent
eaf329d39b
commit
4bdd192fb3
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue