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:
Sebastian Dröge 2010-03-26 18:20:24 +01:00 committed by Tim-Philipp Müller
parent 017bb65d06
commit 0cf1285980

View file

@ -1040,7 +1040,7 @@ gst_base_parse_push_buffer (GstBaseParse * parse, GstBuffer * buffer)
gst_base_parse_update_bitrates (parse, buffer); gst_base_parse_update_bitrates (parse, buffer);
if (GST_BUFFER_TIMESTAMP_IS_VALID (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 if (last_start != GST_CLOCK_TIME_NONE
&& GST_BUFFER_DURATION_IS_VALID (buffer)) && GST_BUFFER_DURATION_IS_VALID (buffer))
last_stop = last_start + GST_BUFFER_DURATION (buffer); last_stop = last_start + GST_BUFFER_DURATION (buffer);