qtmux: allow zero duration tracks
authorLasse Laukkanen <lasse.laukkanen@digia.com>
Fri, 17 Dec 2010 17:41:25 +0000 (19:41 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 17 Dec 2010 18:30:28 +0000 (19:30 +0100)
gst/qtmux/gstqtmux.c

index 5ef009a..2cd848b 100644 (file)
@@ -1645,6 +1645,11 @@ gst_qt_mux_stop_file (GstQTMux * qtmux)
     GstCollectData *cdata = (GstCollectData *) walk->data;
     GstQTPad *qtpad = (GstQTPad *) cdata;
 
+    if (!qtpad->last_buf) {
+      GST_DEBUG_OBJECT (qtmux, "Pad %s has no buffers",
+          GST_PAD_NAME (qtpad->collect.pad));
+      continue;
+    }
     /* send last buffer */
     GST_DEBUG_OBJECT (qtmux, "Sending the last buffer for pad %s",
         GST_PAD_NAME (qtpad->collect.pad));