mpd2sc: send empty audio message

There is the possibility that a stream is stopped and no data are read
from the audio source, e.g the fifo, anymore. The result is that iPaused is
true and nread is -1 when the timer expires.

For now, the halt flag is only sent to the receivers if nread is positive.

For notifying the receivers in case the stream is stopped and no data
are read from the source, lets send an empty audio message for
transmitting the halt flag.

Signed-off-by: Jörg Krause joerg.krause@embedded.rocks

Jörg Krause Jörg Krause 2017-10-06

changed mpd2src/mpd2sc.cpp
mpd2src/mpd2sc.cpp Diff Switch to side-by-side view
Loading...