diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2015-11-20 17:50:30 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-11-21 01:56:46 +0530 |
commit | 8541424d34448b8a8e45f34adb21e296564f7f6b (patch) | |
tree | e6bc875b80f9482117bef0676182964c3d273fba /gst/mxf | |
parent | 73beb1834eb8df54316c9fcd1c72e94c95a8196c (diff) | |
download | gstreamer-plugins-bad-8541424d34448b8a8e45f34adb21e296564f7f6b.tar.gz |
mxfmux: Error out if we get a timeout during live mixing
We can't handle that but need complete streams without gaps.
Diffstat (limited to 'gst/mxf')
-rw-r--r-- | gst/mxf/mxfmux.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gst/mxf/mxfmux.c b/gst/mxf/mxfmux.c index f6e95eee1..c613ca7ad 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; |