mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-20 18:06:14 -05:00
[player] Fix problem where player_playback_cb triggers after playback stop
This commit is contained in:
@@ -236,6 +236,12 @@ input_read(struct evbuffer *evbuf, size_t want, short *flags)
|
||||
|
||||
*flags = 0;
|
||||
|
||||
if (!tid_input)
|
||||
{
|
||||
DPRINTF(E_LOG, L_PLAYER, "Bug! Read called, but playback not running\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
pthread_mutex_lock(&input_buffer.mutex);
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
Reference in New Issue
Block a user