From 02bdefd9ba4a6e0aa2a3ae2cd8256af0f674bde5 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/quicktime/gstqtmux.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/quicktime/gstqtmux.c b/gst/quicktime/gstqtmux.c index 5ef009a..2cd848b 100644 --- a/gst/quicktime/gstqtmux.c +++ b/gst/quicktime/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)); -- 2.7.4