qtmux: Error out immediately if a timecode is to be written but downstream return not-OK

This commit is contained in:
Sebastian Dröge 2017-04-04 15:07:40 +03:00
parent 1e4cdc6d6f
commit eb307baff4

View file

@ -3215,9 +3215,11 @@ gst_qt_mux_add_buffer (GstQTMux * qtmux, GstQTPad * pad, GstBuffer * buf)
buf = pad->prepare_buf_func (pad, buf, qtmux); 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); 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) { if (last_buf == NULL) {
#ifndef GST_DISABLE_GST_DEBUG #ifndef GST_DISABLE_GST_DEBUG