mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 04:58:47 +00:00
Use the new API to post flow ERROR messages on the bus
https://bugzilla.gnome.org/show_bug.cgi?id=770158
This commit is contained in:
parent
410b0e3842
commit
80924aab15
1 changed files with 1 additions and 3 deletions
|
@ -1567,9 +1567,7 @@ pause:
|
||||||
gst_ffmpegdemux_push_event (demux, gst_event_new_eos ());
|
gst_ffmpegdemux_push_event (demux, gst_event_new_eos ());
|
||||||
}
|
}
|
||||||
} else if (ret == GST_FLOW_NOT_LINKED || ret < GST_FLOW_EOS) {
|
} else if (ret == GST_FLOW_NOT_LINKED || ret < GST_FLOW_EOS) {
|
||||||
GST_ELEMENT_ERROR (demux, STREAM, FAILED,
|
GST_ELEMENT_FLOW_ERROR (demux, ret);
|
||||||
("Internal data stream error."),
|
|
||||||
("streaming stopped, reason %s", gst_flow_get_name (ret)));
|
|
||||||
gst_ffmpegdemux_push_event (demux, gst_event_new_eos ());
|
gst_ffmpegdemux_push_event (demux, gst_event_new_eos ());
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue