mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-30 17:14:58 +01:00
GstEnginePipeline: Check that audio bin exists before unref
This commit is contained in:
parent
a3159423f8
commit
a6d10b1fa7
@ -190,11 +190,12 @@ GstEnginePipeline::~GstEnginePipeline() {
|
||||
|
||||
pipeline_ = nullptr;
|
||||
|
||||
if (!pipeline_is_connected_) {
|
||||
if (audiobin_ && !pipeline_is_connected_) {
|
||||
gst_object_unref(GST_OBJECT(audiobin_));
|
||||
audiobin_ = nullptr;
|
||||
}
|
||||
|
||||
audiobin_ = nullptr;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user