qtdemux: fix parsing in push mode when moov atom is at the end
authorArnaud Vrac <rawoul@gmail.com>
Thu, 27 Sep 2012 21:17:49 +0000 (22:17 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Thu, 27 Sep 2012 21:20:19 +0000 (22:20 +0100)
When playing an mp4 file with the MOOV atom at the end of the file, playback
fails with the error message "no 'moov' atom within the first 10 MB". This is
due to a mistake in the upstream_size typing, making the seek to the end of
file never happening.

https://bugzilla.gnome.org/show_bug.cgi?id=684972

gst/isomp4/qtdemux.h

index 5d20470..467cf31 100644 (file)
@@ -112,7 +112,7 @@ struct _GstQTDemux {
   guint64 seek_offset;
 
   gboolean upstream_seekable;
-  gboolean upstream_size;
+  gint64 upstream_size;
 };
 
 struct _GstQTDemuxClass {