summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2013-02-18 20:57:15 +0100
committerJohns <johns98@gmx.net>2013-02-18 20:57:15 +0100
commit2011661d58a5968d86aea4c4e7773bcba4ce05a5 (patch)
tree7cda8010a7c0230fe6110832f5e3f7541bbea4be
parented7740bfe1fddf635e53b86babf71d563a9902d6 (diff)
downloadvdr-plugin-play-2011661d58a5968d86aea4c4e7773bcba4ce05a5.tar.gz
vdr-plugin-play-2011661d58a5968d86aea4c4e7773bcba4ce05a5.tar.bz2
Don't end player thread, when child dies.
-rw-r--r--player.c5
1 files 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
}