diff options
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: device.c,v 1.7 2006-08-07 18:20:43 phintuka Exp $ + * $Id: device.c,v 1.8 2006-08-16 13:18:42 phintuka Exp $ * */ @@ -615,8 +615,17 @@ int cXinelibDevice::PlayFileCtrl(const char *Cmd) bool cXinelibDevice::EndOfStreamReached(void) { +#if 1 + if(m_local && !m_local->EndOfStreamReached()) + return false; + if(m_server && !m_server->EndOfStreamReached()) + return false; + return true; +#else + // problem when local frontend and remote server with no clients return (((!m_server) || m_server->EndOfStreamReached()) && ((!m_local) || m_local->EndOfStreamReached())); +#endif } bool cXinelibDevice::PlayFile(const char *FileName, int Position, bool LoopPlay) @@ -721,6 +730,9 @@ int cXinelibDevice::PlayVideo(const uchar *buf, int length) { TRACEF("cXinelibDevice::PlayVideo"); + if(playMode == pmAudioOnlyBlack) + return length; + if(m_RadioStream) { m_RadioStream = false; m_AudioCount = 0; |