From 699e0abd492be2c740e75b3ff569aa84d35e03a7 Mon Sep 17 00:00:00 2001 From: Lasse Laukkanen Date: Fri, 17 Dec 2010 19:41:25 +0200 Subject: [PATCH] qtmux: allow zero duration tracks --- gst/qtmux/gstqtmux.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/qtmux/gstqtmux.c b/gst/qtmux/gstqtmux.c index 5ef009a7cf..2cd848b222 100644 --- a/gst/qtmux/gstqtmux.c +++ b/gst/qtmux/gstqtmux.c @@ -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));