From 3ed32813da9c6770955d15c8e9a04bf0781caa6e Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Wed, 8 Jul 2015 08:15:22 -0400 Subject: [PATCH] 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 --- gui/gst.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/gst.cpp b/gui/gst.cpp index 7b61fc54..b605522c 100644 --- a/gui/gst.cpp +++ b/gui/gst.cpp @@ -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();