gui: Force playing on GST_MESSAGE_ERROR
I frequently hit a problem where playback stops when a track has an error. My gstreamer code was written assuming that the pipeline stayed in GST_STATE_PLAYING if there was an error, but I think this assumption is wrong. For now, let's always restart playing on error. Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
parent
8f09daef5b
commit
3ed32813da
|
@ -148,6 +148,7 @@ static gboolean on_gst_message(GstBus *bus, GstMessage *message, gpointer data)
|
|||
case GST_MESSAGE_ERROR:
|
||||
parse_gst_error(message);
|
||||
audio :: next();
|
||||
audio :: play();
|
||||
break;
|
||||
case GST_MESSAGE_EOS:
|
||||
gst_driver->eos();
|
||||
|
|
Loading…
Reference in New Issue