splitmuxsrc: Forward a not-linked error on the bus

Handle not-linked as for other fatal errors and post it
onto the bus so the app knows
This commit is contained in:
Jan Schmidt 2016-11-02 02:25:00 +11:00
parent 68b0441a5e
commit f609986c34

View file

@ -548,7 +548,7 @@ gst_splitmux_pad_loop (GstPad * pad)
/* Stop immediately on error or flushing */
GST_INFO_OBJECT (splitpad, "Stopping due to pad_push() result %d", ret);
gst_pad_pause_task (pad);
if (ret < GST_FLOW_EOS) {
if (ret < GST_FLOW_EOS || ret == GST_FLOW_NOT_LINKED) {
GST_ELEMENT_FLOW_ERROR (splitmux, ret);
}
}