musepackdeck: unsigned can't be less than zero

Less-than-zero comparison of an unsigned value, guint64, is never true

CID 1363334
This commit is contained in:
Luis de Bethencourt 2016-07-06 12:12:41 +01:00
parent 0122fec530
commit 87a133aad2

View file

@ -222,7 +222,7 @@ gst_musepackdec_handle_seek_event (GstMusepackDec * dec, GstEvent * event)
GST_DEBUG_OBJECT (dec, "performing seek to sample %" G_GINT64_FORMAT,
segment.start);
if (segment.start < 0 || segment.start >= segment.duration) {
if (segment.start >= segment.duration) {
GST_WARNING_OBJECT (dec, "seek out of bounds");
goto failed;
}