From: Mark Nauwelaerts Date: Wed, 6 Jul 2011 10:22:43 +0000 (+0200) Subject: qtdemux: adjust to unsigned segment fields X-Git-Tag: RELEASE-0.11.1~528 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=88f107b30b794dc373c1c3299e02e543a2776f95;p=platform%2Fupstream%2Fgst-plugins-good.git qtdemux: adjust to unsigned segment fields --- diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index cd06286ea..a1f712979 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -1644,7 +1644,8 @@ gst_qtdemux_handle_sink_event (GstPad * sinkpad, GstEvent * event) } else { gst_qtdemux_find_sample (demux, segment.start, TRUE, FALSE, NULL, NULL, (gint64 *) & segment.start); - segment.start = MAX (segment.start, 0); + if ((gint64) segment.start < 0) + segment.start = 0; } } if (GST_CLOCK_TIME_IS_VALID (segment.stop)) {