summaryrefslogtreecommitdiffstats
path: root/video/out/vo_xv.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-26 20:30:52 +0200
committerwm4 <wm4@nowhere>2014-07-26 20:30:52 +0200
commit3f268cc4f2a498f909f9199b1683d2c6eb285af8 (patch)
treef4939c9a080932759f0e5e760382cd1e1e7f1cea /video/out/vo_xv.c
parent559fe1daace8f48a8dc37906f840e9981b961415 (diff)
downloadmpv-3f268cc4f2a498f909f9199b1683d2c6eb285af8.tar.bz2
mpv-3f268cc4f2a498f909f9199b1683d2c6eb285af8.tar.xz
win32: use gcc TLS instead of WM_NCCREATE tricks for window context
win32 does not provide a proper per-window context pointer. Although it does allow passing a user-chosen value to WM_CREATE/WM_NCCREATE, this is not enough - the first message doesn't even have to be WM_NCCREATE. This gets us in trouble later on, so go the easy route and just use a TLS variable. __thread is gcc specific, but Windows is a very "special" platform anyway. We support only MinGW and Cygwin on it, so who cares. (C11 standardizes __thread as _Thread_local; we can use that later.)
Diffstat (limited to 'video/out/vo_xv.c')
0 files changed, 0 insertions, 0 deletions