mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +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
af00e59528
commit
6663e7c1ca
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