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:
Anna Schumaker 2015-07-08 08:15:22 -04:00
parent 8f09daef5b
commit 3ed32813da
1 changed files with 1 additions and 0 deletions

View File

@ -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();