From 41448662be9209a3b489a2ec26d83d29bff4abdd Mon Sep 17 00:00:00 2001 From: atmosfear Date: Sun, 10 Jun 2001 23:43:37 +0000 Subject: [PATCH] Lock callback on pause, unlock on resume. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1092 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libao2/ao_sdl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libao2/ao_sdl.c b/libao2/ao_sdl.c index d0d854987a..643c5cfa80 100644 --- a/libao2/ao_sdl.c +++ b/libao2/ao_sdl.c @@ -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(); }