full_buffers and buffered_bytes must be volatile because they are used from

different threads, hopefully this fixes an uninit hang.
The code still relies on luck for thread-safety though.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28811 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2009-03-05 12:25:10 +00:00
parent 3b0f23d1cf
commit 8831008bb5
1 changed files with 2 additions and 2 deletions

View File

@ -88,8 +88,8 @@ static WAVEHDR* waveBlocks; //pointer to our ringbuffer memory
static HWAVEOUT hWaveOut; //handle to the waveout device
static unsigned int buf_write=0;
static unsigned int buf_write_pos=0;
static int full_buffers=0;
static int buffered_bytes=0;
static volatile int full_buffers=0;
static volatile int buffered_bytes=0;
static ao_info_t info =