mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
baseparse: Set the last stop to the buffer starttime if the duration is invalid
...instead of not setting it at all.
This commit is contained in:
parent
017bb65d06
commit
0cf1285980
1 changed files with 1 additions and 1 deletions
|
@ -1040,7 +1040,7 @@ gst_base_parse_push_buffer (GstBaseParse * parse, GstBuffer * buffer)
|
|||
gst_base_parse_update_bitrates (parse, buffer);
|
||||
|
||||
if (GST_BUFFER_TIMESTAMP_IS_VALID (buffer))
|
||||
last_start = GST_BUFFER_TIMESTAMP (buffer);
|
||||
last_start = last_stop = GST_BUFFER_TIMESTAMP (buffer);
|
||||
if (last_start != GST_CLOCK_TIME_NONE
|
||||
&& GST_BUFFER_DURATION_IS_VALID (buffer))
|
||||
last_stop = last_start + GST_BUFFER_DURATION (buffer);
|
||||
|
|
Loading…
Reference in a new issue