mirror of https://github.com/mpv-player/mpv
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:
parent
d646cfabf3
commit
41448662be
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue