From: Sebastian Dröge Date: Fri, 26 Mar 2010 17:20:24 +0000 (+0100) Subject: baseparse: Set the last stop to the buffer starttime if the duration is invalid X-Git-Tag: 1.19.3~509^2~7136^2~963 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0cf1285980ca5ee4169e251fd6afaa38a8428412;p=platform%2Fupstream%2Fgstreamer.git baseparse: Set the last stop to the buffer starttime if the duration is invalid ...instead of not setting it at all. --- diff --git a/gst/audioparsers/gstbaseparse.c b/gst/audioparsers/gstbaseparse.c index f119e6d..f277ab6 100644 --- a/gst/audioparsers/gstbaseparse.c +++ b/gst/audioparsers/gstbaseparse.c @@ -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);