diff options
author | James Ross-Gowan <rossymiles@gmail.com> | 2014-09-30 12:21:35 +1000 |
---|---|---|
committer | James Ross-Gowan <rossymiles@gmail.com> | 2014-09-30 23:01:06 +1000 |
commit | f23827d5574d1f84c5c1054579dd2f16564f6050 (patch) | |
tree | 7f94f6b5b7ca6435794db312f329e26cff05c585 /player/core.h | |
parent | c2592be4f0ee8ffa77e23295b167397554f5c418 (diff) | |
download | mpv-f23827d5574d1f84c5c1054579dd2f16564f6050.tar.bz2 mpv-f23827d5574d1f84c5c1054579dd2f16564f6050.tar.xz |
w32_common: quit event loop on destroy
When embedding, if the parent window is destroyed, it will cause mpv's
window to be destroyed as well. Since WM_USER wakeups are sent to the
window, destroying the window will prevent wakeups and cause uninit to
hang.
Fix this by quitting the event loop on WM_DESTROY. Events should only be
processed for the lifetime of the window, from CreateWindowEx to
WM_DESTROY. After the event loop is finished, mp_dispatch_queue_process
can handle any remaining requests.
Diffstat (limited to 'player/core.h')
0 files changed, 0 insertions, 0 deletions