Lock callback on pause, unlock on resume.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1092 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
atmosfear 2001-06-10 23:43:37 +00:00
parent d646cfabf3
commit 41448662be
1 changed files with 5 additions and 5 deletions

View File

@ -230,7 +230,7 @@ static void uninit(){
// stop playing and empty buffers (for seeking/pause)
static void reset(){
printf("SDL: reset called!\n");
//printf("SDL: reset called!\n");
/* Reset ring-buffer state */
buf_read=0;
@ -247,16 +247,16 @@ static void reset(){
static void audio_pause()
{
printf("SDL: audio_pause called!\n");
//printf("SDL: audio_pause called!\n");
SDL_LockAudio();
// for now, just call reset();
//reset();
}
// resume playing, after audio_pause()
static void audio_resume()
{
//printf("SDL: audio_resume called!\n");
SDL_UnlockAudio();
}