Mercurial > hg > forks > bilotrip-mj12
diff liboggplayer-src/src/oggplayer.cpp @ 59:3eacedd172ab
Fence some lingering audio code, based on fixes from visy.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 06 Aug 2013 23:27:37 +0300 |
parents | 105513a2e3c9 |
children | 9c63b355c82b |
line wrap: on
line diff
--- a/liboggplayer-src/src/oggplayer.cpp Tue Aug 06 23:15:34 2013 +0300 +++ b/liboggplayer-src/src/oggplayer.cpp Tue Aug 06 23:27:37 2013 +0300 @@ -61,6 +61,7 @@ } +#ifdef VORBIS_SUPPORT int OggPlayer::audio_read(char* buf, unsigned int size) { if(NULL==buf || !imp->vorbis_p || !playing() || !imp->ready()) return 0; boost::unique_lock<boost::mutex> lock(imp->audio_mut); @@ -82,6 +83,7 @@ return k; } +#endif bool OggPlayer::yuv_buffer_try_lock(YUVBuffer *buffer) { if (!playing() || !imp->theora_p || !imp->ready())