mxfmux: Error out if we get a timeout during live mixing

We can't handle that but need complete streams without gaps.
This commit is contained in:
Sebastian Dröge 2015-11-20 17:50:30 +02:00
parent 73beb1834e
commit 8541424d34

View file

@ -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;