mirror of
https://github.com/mpv-player/mpv
synced 2025-03-05 21:57:39 +00:00
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:
parent
3b0f23d1cf
commit
8831008bb5
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user