1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-24 16:31:22 +01:00

Fix crash when trying to fingerprint but missing a plugin.

This commit is contained in:
John Maguire 2015-02-03 18:13:23 +01:00
parent f2e6d665f3
commit af8f4100cd

View File

@ -201,6 +201,7 @@ gboolean Chromaprinter::BusCallback(GstBus*, GstMessage* msg, gpointer data) {
switch (GST_MESSAGE_TYPE(msg)) {
case GST_MESSAGE_ERROR:
instance->ReportError(msg);
instance->finishing_ = true;
g_main_loop_quit(instance->event_loop_);
break;
@ -219,11 +220,13 @@ GstBusSyncReply Chromaprinter::BusCallbackSync(GstBus*, GstMessage* msg,
switch (GST_MESSAGE_TYPE(msg)) {
case GST_MESSAGE_EOS:
instance->finishing_ = true;
g_main_loop_quit(instance->event_loop_);
break;
case GST_MESSAGE_ERROR:
instance->ReportError(msg);
instance->finishing_ = true;
g_main_loop_quit(instance->event_loop_);
break;