summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2017-05-10 11:12:23 +0200
committerSebastian Dröge <sebastian@centricular.com>2017-05-10 11:12:23 +0200
commit419f53259f726e221ddddea8378f4dd0c112e5c9 (patch)
tree0e63f49e44f543d1306e0b735f8d865cdf20142d
parent3fcfe774e6872f6949711e9939ca985ae70495b2 (diff)
qtmux: Error out directly if sending filler data results in a flow error
CID 1405994
-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 889cf65bb..4d89688bb 100644
--- a/gst/isomp4/gstqtmux.c
+++ b/gst/isomp4/gstqtmux.c
@@ -4273,6 +4273,8 @@ gst_qt_mux_add_buffer (GstQTMux * qtmux, GstQTPad * pad, GstBuffer * buf)
gst_buffer_memset (fill_buf, 0, 0, fill_size);
ret = gst_qt_mux_send_buffer (qtmux, fill_buf, &qtmux->mdat_size, TRUE);
+ if (ret != GST_FLOW_OK)
+ goto bail;
qtmux->current_chunk_offset = chunk_offset = sample_entry->chunk_offset;
qtmux->current_chunk_size = buffer_size;
qtmux->current_chunk_duration = duration;