mirror of https://github.com/mpv-player/mpv
replace WM_DESTROY with WM_CLOSE to make it possible to play multiple files, patch by Reimar Doeffinger
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12005 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8c55d85a17
commit
e65a6fc09c
|
@ -24,7 +24,7 @@ static int cursor = 1;
|
||||||
|
|
||||||
static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) {
|
static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) {
|
||||||
switch (message) {
|
switch (message) {
|
||||||
case WM_DESTROY:
|
case WM_CLOSE:
|
||||||
mp_input_queue_cmd(mp_input_parse_cmd("quit"));
|
mp_input_queue_cmd(mp_input_parse_cmd("quit"));
|
||||||
break;
|
break;
|
||||||
case WM_SYSCOMMAND:
|
case WM_SYSCOMMAND:
|
||||||
|
|
Loading…
Reference in New Issue