mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 16:15:57 -05:00
Protect playback_start() againt empty playlist
This commit is contained in:
parent
682e495ed0
commit
c2977fd61d
@ -1652,6 +1652,13 @@ playback_start(void *arg)
|
|||||||
uint32_t *idx_id;
|
uint32_t *idx_id;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
if (!source_head)
|
||||||
|
{
|
||||||
|
DPRINTF(E_LOG, L_PLAYER, "Nothing to play!\n");
|
||||||
|
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
idx_id = (uint32_t *)arg;
|
idx_id = (uint32_t *)arg;
|
||||||
|
|
||||||
if (player_state == PLAY_PLAYING)
|
if (player_state == PLAY_PLAYING)
|
||||||
|
Loading…
Reference in New Issue
Block a user