summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2010-03-26 18:20:24 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2010-03-26 18:20:24 +0100
commit6663e7c1caaa90aa63fef5a8d293cc9fdab3b071 (patch)
tree6010af2a7bb8b0889a4a9296e04369cebb510a91
parentaf00e5952837eeb4bc4975fe3d5667686f93e7ae (diff)
baseparse: Set the last stop to the buffer starttime if the duration is invalid
...instead of not setting it at all.
-rw-r--r--gst/audioparsers/gstbaseparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/audioparsers/gstbaseparse.c b/gst/audioparsers/gstbaseparse.c
index f119e6d3f..f277ab676 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);