mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 19:45:31 +01:00
Fix some connect() warnings when starting a background stream
This commit is contained in:
parent
9cacd9027e
commit
797dfe9841
@ -766,9 +766,9 @@ void GstEngine::RemoveBufferConsumer(BufferConsumer *consumer) {
|
|||||||
|
|
||||||
int GstEngine::AddBackgroundStream(shared_ptr<GstEnginePipeline> pipeline) {
|
int GstEngine::AddBackgroundStream(shared_ptr<GstEnginePipeline> pipeline) {
|
||||||
// We don't want to get metadata messages or end notifications.
|
// We don't want to get metadata messages or end notifications.
|
||||||
disconnect(pipeline.get(), SIGNAL(MetadataFound(Engine::SimpleMetaBundle)), this, 0);
|
disconnect(pipeline.get(), SIGNAL(MetadataFound(int,Engine::SimpleMetaBundle)), this, 0);
|
||||||
disconnect(pipeline.get(), SIGNAL(EndOfStreamReached(bool)), this, 0);
|
disconnect(pipeline.get(), SIGNAL(EndOfStreamReached(int,bool)), this, 0);
|
||||||
connect(pipeline.get(), SIGNAL(EndOfStreamReached(bool)), SLOT(BackgroundStreamFinished()));
|
connect(pipeline.get(), SIGNAL(EndOfStreamReached(int,bool)), SLOT(BackgroundStreamFinished()));
|
||||||
|
|
||||||
const int stream_id = next_background_stream_id_++;
|
const int stream_id = next_background_stream_id_++;
|
||||||
background_streams_[stream_id] = pipeline;
|
background_streams_[stream_id] = pipeline;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user