mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
dfb5b3011f
commit
de788829fe
2 changed files with 8 additions and 1 deletions
|
@ -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),
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue