mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-28 18:40:52 +01:00
Don't try to stop the chromaprinter event loop a second time after it's
already been stopped. This can happen if the song is exactly 30 seconds long. Fixes issue 4001
This commit is contained in:
parent
6e8cfc7762
commit
7fdaff079d
@ -190,6 +190,9 @@ void Chromaprinter::ReportError(GstMessage* msg) {
|
||||
|
||||
gboolean Chromaprinter::BusCallback(GstBus*, GstMessage* msg, gpointer data) {
|
||||
Chromaprinter* instance = reinterpret_cast<Chromaprinter*>(data);
|
||||
if (instance->finishing_) {
|
||||
return GST_BUS_DROP;
|
||||
}
|
||||
|
||||
switch (GST_MESSAGE_TYPE(msg)) {
|
||||
case GST_MESSAGE_ERROR:
|
||||
@ -205,6 +208,9 @@ gboolean Chromaprinter::BusCallback(GstBus*, GstMessage* msg, gpointer data) {
|
||||
|
||||
GstBusSyncReply Chromaprinter::BusCallbackSync(GstBus*, GstMessage* msg, gpointer data) {
|
||||
Chromaprinter* instance = reinterpret_cast<Chromaprinter*>(data);
|
||||
if (instance->finishing_) {
|
||||
return GST_BUS_PASS;
|
||||
}
|
||||
|
||||
switch (GST_MESSAGE_TYPE(msg)) {
|
||||
case GST_MESSAGE_EOS:
|
||||
|
Loading…
Reference in New Issue
Block a user