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.
This commit is contained in:
Michael Smith 2006-09-18 14:21:45 +00:00
parent dfb5b3011f
commit de788829fe
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2006-09-18 Michael Smith <msmith@fluendo.com>
* 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 <ensonic@users.sf.net>
* ext/libvisual/visual.c: (gst_vis_src_negotiate),

View file

@ -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);