[player] Fix problem where player_playback_cb triggers after playback stop

This commit is contained in:
ejurgensen
2016-12-27 22:11:11 +01:00
parent 3e24f857fa
commit c92ebf9dfb
2 changed files with 17 additions and 2 deletions

View File

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