[pipe] Temporary "fix" for threading issues

This commit is contained in:
ejurgensen 2017-02-05 00:11:21 +01:00
parent 9680fa093a
commit 18fe8fe0ef

View File

@ -667,7 +667,7 @@ setup(struct player_source *ps)
DPRINTF(E_LOG, L_PLAYER, "Unknown pipe '%s'\n", ps->path);
return -1;
}
// TODO pipe mutex here
if (pipe->state != PIPE_OPEN)
{
pipe->fd = pipe_open(pipe->path, 0);
@ -676,9 +676,6 @@ setup(struct player_source *ps)
pipe->state = PIPE_OPEN;
}
if (pipe->ev)
event_del(pipe->ev); // Avoids autostarting pipe if manually started by user
worker_execute(pipe_metadata_watch_add, pipe->path, strlen(pipe->path) + 1, 0);
ps->setup_done = 1;