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
@ -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…
x
Reference in New Issue
Block a user