diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/VLCInput.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/VLCInput.cpp b/src/VLCInput.cpp index e2dd5a8..c4c0413 100644 --- a/src/VLCInput.cpp +++ b/src/VLCInput.cpp @@ -195,7 +195,10 @@ ssize_t VLCInput::m_read(uint8_t* buf, size_t length) boost::this_thread::sleep(boost::posix_time::milliseconds(1)); libvlc_media_t *media = libvlc_media_player_get_media(m_mp); - if (libvlc_media_get_state(media) == libvlc_Error) { + libvlc_state_t st = libvlc_media_get_state(media); + if (!(st == libvlc_Opening || + st == libvlc_Buffering || + st == libvlc_Playing) ) { err = -1; break; } |