GstEnginePipeline: Add more info when ignoring error

This commit is contained in:
Jonas Kvinge 2022-12-04 03:17:53 +01:00
parent 7803dc8be3
commit 292f2de3e6

View File

@ -1183,7 +1183,7 @@ void GstEnginePipeline::ErrorMessageReceived(GstMessage *msg) {
if (pipeline_is_initialized_ && next_uri_set_ && (domain == GST_RESOURCE_ERROR || domain == GST_STREAM_ERROR)) {
// A track is still playing and the next uri is not playable. We ignore the error here so it can play until the end.
// But there is no message send to the bus when the current track finishes, we have to add an EOS ourself.
qLog(Info) << "Ignoring error when loading next track";
qLog(Info) << "Ignoring error" << domain << code << message << debugstr << "when loading next track";
GstPad *pad = gst_element_get_static_pad(audiobin_, "sink");
gst_pad_send_event(pad, gst_event_new_eos());
gst_object_unref(pad);