qtdemux: adjust to unsigned segment fields
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Wed, 6 Jul 2011 10:22:43 +0000 (12:22 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Wed, 6 Jul 2011 14:32:11 +0000 (16:32 +0200)
gst/isomp4/qtdemux.c

index cd06286ea46d8759267810e4024f1bd4430b6f7f..a1f71297947ee36432faa0c50aa94ca621b95ca1 100644 (file)
@@ -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)) {