qtdemux: don't use GST_CLOCK_TIME_NONE in non GstClockTime variables
authorThiago Santos <thiagoss@osg.samsung.com>
Tue, 2 Dec 2014 00:04:02 +0000 (21:04 -0300)
committerThiago Santos <thiagoss@osg.samsung.com>
Tue, 2 Dec 2014 03:46:35 +0000 (00:46 -0300)
Use -1 instead as those are gint64/guint64 variables and not GstClockTime

gst/isomp4/qtdemux.c

index 5de4f44a92939edc34b14aa3f6404fd598826c64..c0b40e34bd9d69c600b82a7c37c1e4d0a6fe4f30 100644 (file)
@@ -548,10 +548,10 @@ gst_qtdemux_init (GstQTDemux * qtdemux)
   qtdemux->offset = 0;
   qtdemux->first_mdat = -1;
   qtdemux->got_moov = FALSE;
-  qtdemux->mdatoffset = GST_CLOCK_TIME_NONE;
+  qtdemux->mdatoffset = -1;
   qtdemux->mdatbuffer = NULL;
   qtdemux->restoredata_buffer = NULL;
-  qtdemux->restoredata_offset = GST_CLOCK_TIME_NONE;
+  qtdemux->restoredata_offset = -1;
   qtdemux->fragment_start = -1;
   qtdemux->fragment_start_offset = -1;
   qtdemux->media_caps = NULL;
@@ -1829,8 +1829,8 @@ gst_qtdemux_reset (GstQTDemux * qtdemux, gboolean hard)
     qtdemux->posted_redirect = FALSE;
     qtdemux->first_mdat = -1;
     qtdemux->header_size = 0;
-    qtdemux->mdatoffset = GST_CLOCK_TIME_NONE;
-    qtdemux->restoredata_offset = GST_CLOCK_TIME_NONE;
+    qtdemux->mdatoffset = -1;
+    qtdemux->restoredata_offset = -1;
     if (qtdemux->mdatbuffer)
       gst_buffer_unref (qtdemux->mdatbuffer);
     if (qtdemux->restoredata_buffer)