mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
mpeg2dec: convert the position to stream time before answering to a position query
This commit is contained in:
parent
fe3e26bee4
commit
ff60a26cf8
1 changed files with 4 additions and 0 deletions
|
@ -1540,6 +1540,10 @@ gst_mpeg2dec_src_query (GstPad * pad, GstQuery * query)
|
|||
mpeg2dec->next_time, &format, &cur))
|
||||
goto error;
|
||||
|
||||
cur = gst_segment_to_stream_time (&mpeg2dec->segment, format, cur);
|
||||
if (cur == -1)
|
||||
goto error;
|
||||
|
||||
gst_query_set_position (query, format, cur);
|
||||
|
||||
GST_LOG_OBJECT (mpeg2dec,
|
||||
|
|
Loading…
Reference in a new issue