Not sending data to stdin can throw ezstream into an infinite loop
Here's the setup: first term avconv -re -i file.mp3 -c:a mp3 -f mpegts udp://127.0.0.1:1234 second term avconv -i udp://@127.0.0.1:1234 -f mp3 - | ezstream -c conf.xml
Everything works as expected, unless you kill the first command, wait for 10-15 seconds then restart it. At this point, ezstream won't resume streaming and will throw thousand of ezstream: Streaming from standard input ezstream: No (more) data available on standard input at you.
It seems the problem comes from streamFile in src/ezstream.c where the file is closed, even if stdin is in use.
Attempted patch is attached for review.