mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
mpegtsbase: Post an error message when EOS'ing without source pads
This ensures we don't "hang" when files can't be decoded, or contain no valid streams.
This commit is contained in:
parent
7837cab44e
commit
ce441cbff7
1 changed files with 5 additions and 1 deletions
|
@ -1613,7 +1613,11 @@ error:
|
|||
const gchar *reason = gst_flow_get_name (ret);
|
||||
GST_DEBUG_OBJECT (base, "Pausing task, reason %s", reason);
|
||||
if (ret == GST_FLOW_EOS) {
|
||||
GST_MPEGTS_BASE_GET_CLASS (base)->push_event (base, gst_event_new_eos ());
|
||||
if (!GST_MPEGTS_BASE_GET_CLASS (base)->push_event (base,
|
||||
gst_event_new_eos ()))
|
||||
GST_ELEMENT_ERROR (base, STREAM, FAILED,
|
||||
(_("Internal data stream error.")),
|
||||
("No program activated before EOS"));
|
||||
} else if (ret == GST_FLOW_NOT_LINKED || ret < GST_FLOW_EOS) {
|
||||
GST_ELEMENT_ERROR (base, STREAM, FAILED,
|
||||
(_("Internal data stream error.")),
|
||||
|
|
Loading…
Reference in a new issue