From eb307baff4039884f8cb334c8f935c31bcc8cc2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 4 Apr 2017 15:07:40 +0300 Subject: [PATCH] qtmux: Error out immediately if a timecode is to be written but downstream return not-OK --- gst/isomp4/gstqtmux.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c index 29a86fd12f..cf5c3bf8c6 100644 --- a/gst/isomp4/gstqtmux.c +++ b/gst/isomp4/gstqtmux.c @@ -3215,9 +3215,11 @@ gst_qt_mux_add_buffer (GstQTMux * qtmux, GstQTPad * pad, GstBuffer * buf) buf = pad->prepare_buf_func (pad, buf, qtmux); } - last_buf = pad->last_buf; - ret = gst_qt_mux_check_and_update_timecode (qtmux, pad, buf, ret); + if (ret != GST_FLOW_OK) + return ret; + + last_buf = pad->last_buf; if (last_buf == NULL) { #ifndef GST_DISABLE_GST_DEBUG