summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2017-04-04 15:07:40 +0300
committerSebastian Dröge <sebastian@centricular.com>2017-05-29 11:05:12 +0300
commit9c5cb375db134b6d3993fbbaac138bebe9846337 (patch)
treea3f51e633015fa1336cea79987b4b95a3d0777cd
parent674d1a2441da9b2c39afd5125017775ad8119d9c (diff)
downloadgstreamer-plugins-good-9c5cb375db134b6d3993fbbaac138bebe9846337.tar.gz
qtmux: Error out immediately if a timecode is to be written but downstream return not-OK
-rw-r--r--gst/isomp4/gstqtmux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c
index f675b5da2..a8360fe8d 100644
--- a/gst/isomp4/gstqtmux.c
+++ b/gst/isomp4/gstqtmux.c
@@ -3155,6 +3155,8 @@ gst_qt_mux_add_buffer (GstQTMux * qtmux, GstQTPad * pad, GstBuffer * buf)
}
ret = gst_qt_mux_check_and_update_timecode (qtmux, pad, buf, ret);
+ if (ret != GST_FLOW_OK)
+ return ret;
if (last_buf && !buf && !GST_BUFFER_DURATION_IS_VALID (last_buf)) {
/* this is last buffer; there is no next buffer so we need valid number as duration */