From de788829fe7afae700f9e9a75b7fd59c23657167 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Mon, 18 Sep 2006 14:21:45 +0000 Subject: [PATCH] ext/ogg/gstoggmux.c: Timestamps are unsigned; comparision against GST_CLOCK_TIME_NONE was always true, leading to dro... Original commit message from CVS: * ext/ogg/gstoggmux.c: (gst_ogg_mux_push_buffer): Timestamps are unsigned; comparision against GST_CLOCK_TIME_NONE was always true, leading to dropping all timestamps. --- ChangeLog | 6 ++++++ ext/ogg/gstoggmux.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 991cff3113..0687061c6f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-09-18 Michael Smith + + * ext/ogg/gstoggmux.c: (gst_ogg_mux_push_buffer): + Timestamps are unsigned; comparision against GST_CLOCK_TIME_NONE was + always true, leading to dropping all timestamps. + 2006-09-18 Stefan Kost * ext/libvisual/visual.c: (gst_vis_src_negotiate), diff --git a/ext/ogg/gstoggmux.c b/ext/ogg/gstoggmux.c index 14cd212597..7034f379cf 100644 --- a/ext/ogg/gstoggmux.c +++ b/ext/ogg/gstoggmux.c @@ -523,7 +523,8 @@ gst_ogg_mux_push_buffer (GstOggMux * mux, GstBuffer * buffer) /* Ensure we have monotonically increasing timestamps in the output. */ if (GST_BUFFER_TIMESTAMP_IS_VALID (buffer)) { - if (GST_BUFFER_TIMESTAMP (buffer) < mux->last_ts) + if (mux->last_ts != GST_CLOCK_TIME_NONE && + GST_BUFFER_TIMESTAMP (buffer) < mux->last_ts) GST_BUFFER_TIMESTAMP (buffer) = mux->last_ts; else mux->last_ts = GST_BUFFER_TIMESTAMP (buffer);