fix crashing when DLNA casting and toggling stop after current
This commit is contained in:
@@ -229,6 +229,9 @@ func (d *DLNAPlayer) SetNextFile(url string, meta mediaprovider.MediaItemMetadat
|
|||||||
Title: meta.Name,
|
Title: meta.Name,
|
||||||
Seekable: true,
|
Seekable: true,
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// empty media item to signify erasing next track in device queue
|
||||||
|
media = &avtransport.MediaItem{}
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
|
|||||||
Reference in New Issue
Block a user