fix crashing when DLNA casting and toggling stop after current

This commit is contained in:
Drew Weymouth
2025-08-08 08:26:25 -07:00
parent 30ee5deb9c
commit 5dd71c7ce6
+3
View File
@@ -229,6 +229,9 @@ func (d *DLNAPlayer) SetNextFile(url string, meta mediaprovider.MediaItemMetadat
Title: meta.Name,
Seekable: true,
}
} else {
// empty media item to signify erasing next track in device queue
media = &avtransport.MediaItem{}
}
ctx, cancel := context.WithCancel(context.Background())