mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
gst-libs/gst/cdda/gstcddabasesrc.c: Fix build when disabling asserts.
Original commit message from CVS: * gst-libs/gst/cdda/gstcddabasesrc.c: (gst_cdda_base_src_add_track): Fix build when disabling asserts.
This commit is contained in:
parent
cb73a6e792
commit
57301524fb
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-05-04 Stefan Kost <ensonic@users.sf.net>
|
||||
|
||||
* gst-libs/gst/cdda/gstcddabasesrc.c:
|
||||
(gst_cdda_base_src_add_track):
|
||||
Fix build when disabling asserts.
|
||||
|
||||
2007-05-03 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* sys/ximage/ximagesink.c: (gst_ximagesink_ximage_new):
|
||||
|
|
|
@ -1025,7 +1025,10 @@ gst_cdda_base_src_add_track (GstCddaBaseSrc * src, GstCddaBaseSrcTrack * track)
|
|||
if (src->num_tracks > 0) {
|
||||
guint end_of_previous_track = src->tracks[src->num_tracks - 1].end;
|
||||
|
||||
g_return_val_if_fail (track->start >= end_of_previous_track, FALSE);
|
||||
if (track->start >= end_of_previous_track) {
|
||||
GST_WARNING ("track %2u overlaps with previous tracks", track->num);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
GST_OBJECT_LOCK (src);
|
||||
|
|
Loading…
Reference in a new issue