qtdemux: upstream handles seek if fragmented and on time segment
authorThiago Santos <ts.santos@sisa.samsung.com>
Fri, 30 May 2014 17:32:42 +0000 (14:32 -0300)
committerThiago Santos <ts.santos@sisa.samsung.com>
Fri, 30 May 2014 18:01:50 +0000 (15:01 -0300)
Otherwise we can reject seeks on local files that contain fragmented-like
atoms like 'mvex'. Also improve a message log

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

gst/isomp4/qtdemux.c

index 5897f0b..2824dca 100644 (file)
@@ -1556,10 +1556,10 @@ gst_qtdemux_handle_src_event (GstPad * pad, GstObject * parent,
       GstClockTime ts = gst_util_get_timestamp ();
 #endif
 
-      if (qtdemux->upstream_newsegment || qtdemux->fragmented) {
+      if (qtdemux->upstream_newsegment && qtdemux->fragmented) {
         /* seek should be handled by upstream, we might need to re-download fragments */
         GST_DEBUG_OBJECT (qtdemux,
-            "leting upstream handle seek for smoothstreaming");
+            "let upstream handle seek for fragmented playback");
         goto upstream;
       }