From f04c395106cfd014f436d1b4537e08f41f5cc250 Mon Sep 17 00:00:00 2001 From: Moritz Grimm Date: Sat, 3 Jan 2015 00:08:12 +0100 Subject: [PATCH] Do not close stdin on EOS From gquintard via ticket #2045: "Not sending data to stdin can throw ezstream into an infinite loop" --- src/ezstream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ezstream.c b/src/ezstream.c index e044163..06bb65e 100644 --- a/src/ezstream.c +++ b/src/ezstream.c @@ -982,7 +982,7 @@ streamFile(shout_t *shout, const char *fileName) if (popenFlag) pclose(filepstream); - else + else if (!isStdin) fclose(filepstream); if (songLenStr != NULL)