mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 11:19:18 +01:00
Disable callbacks after generating fingerprint.
(cherry picked from commit 9bb37fda62
)
This commit is contained in:
parent
ba7b73656d
commit
2e98ce65d5
@ -143,6 +143,8 @@ QString Chromaprinter::CreateFingerprint() {
|
||||
qLog(Debug) << "Decode time:" << decode_time << "Codegen time:" << codegen_time;
|
||||
|
||||
// Cleanup
|
||||
callbacks.new_buffer = NULL;
|
||||
gst_app_sink_set_callbacks(reinterpret_cast<GstAppSink*>(sink), &callbacks, this, NULL);
|
||||
gst_bus_set_sync_handler(gst_pipeline_get_bus(GST_PIPELINE(pipeline_)), NULL, NULL);
|
||||
g_source_remove(bus_callback_id);
|
||||
gst_object_unref(pipeline_);
|
||||
|
Loading…
Reference in New Issue
Block a user