1
0
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:
Jonas Kvinge 2023-02-27 18:50:09 +01:00
parent a3159423f8
commit a6d10b1fa7

View File

@ -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;
}
}