mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-30 17:23:44 -04:00
[pipe] Temporary "fix" for threading issues
This commit is contained in:
parent
9680fa093a
commit
18fe8fe0ef
@ -667,7 +667,7 @@ setup(struct player_source *ps)
|
|||||||
DPRINTF(E_LOG, L_PLAYER, "Unknown pipe '%s'\n", ps->path);
|
DPRINTF(E_LOG, L_PLAYER, "Unknown pipe '%s'\n", ps->path);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
// TODO pipe mutex here
|
|
||||||
if (pipe->state != PIPE_OPEN)
|
if (pipe->state != PIPE_OPEN)
|
||||||
{
|
{
|
||||||
pipe->fd = pipe_open(pipe->path, 0);
|
pipe->fd = pipe_open(pipe->path, 0);
|
||||||
@ -676,9 +676,6 @@ setup(struct player_source *ps)
|
|||||||
pipe->state = PIPE_OPEN;
|
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);
|
worker_execute(pipe_metadata_watch_add, pipe->path, strlen(pipe->path) + 1, 0);
|
||||||
|
|
||||||
ps->setup_done = 1;
|
ps->setup_done = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user