From 8541424d34448b8a8e45f34adb21e296564f7f6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 20 Nov 2015 17:50:30 +0200 Subject: [PATCH] mxfmux: Error out if we get a timeout during live mixing We can't handle that but need complete streams without gaps. --- gst/mxf/mxfmux.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gst/mxf/mxfmux.c b/gst/mxf/mxfmux.c index f6e95eee15..c613ca7ad5 100644 --- a/gst/mxf/mxfmux.c +++ b/gst/mxf/mxfmux.c @@ -1438,6 +1438,13 @@ gst_mxf_mux_aggregate (GstAggregator * aggregator, gboolean timeout) GList *l; gboolean eos = TRUE; + if (timeout) { + GST_ELEMENT_ERROR (mux, STREAM, MUX, (NULL), + ("Live mixing and got a timeout. This is not supported yet")); + ret = GST_FLOW_ERROR; + goto error; + } + if (mux->state == GST_MXF_MUX_STATE_ERROR) { GST_ERROR_OBJECT (mux, "Had an error before -- returning"); return GST_FLOW_ERROR;