From 2011661d58a5968d86aea4c4e7773bcba4ce05a5 Mon Sep 17 00:00:00 2001 From: Johns Date: Mon, 18 Feb 2013 20:57:15 +0100 Subject: Don't end player thread, when child dies. --- player.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/player.c b/player.c index a79e331..4ec0f4d 100644 --- a/player.c +++ b/player.c @@ -464,8 +464,9 @@ static void *PlayerHandlerThread(void *dummy) { Debug(3, "play: player thread started\n"); - while (PlayerIsRunning()) { - if (ConfigUseSlave) { + // Need: thread for video poll: while (PlayerIsRunning()) + for (;;) { + if (ConfigUseSlave && PlayerIsRunning()) { PlayerPollPipe(); // FIXME: wait only if pipe not ready } -- cgit v1.2.3