Mercurial > mplayer.hg
diff Gui/win32/dialogs.c @ 22487:1c5ea79749ea
fixed dvd chapter and title switching
author | vayne |
---|---|
date | Sat, 10 Mar 2007 14:33:28 +0000 |
parents | c885b979fda3 |
children |
line wrap: on
line diff
--- a/Gui/win32/dialogs.c Sat Mar 10 14:32:19 2007 +0000 +++ b/Gui/win32/dialogs.c Sat Mar 10 14:33:28 2007 +0000 @@ -143,6 +143,7 @@ { if (GetFullPathName(filename, MAX_PATH, filename, &filepart)) { + mplSetFileName(NULL, filename, STREAMTYPE_FILE); if(!parse_filename(filename, playtree, mconfig, 0)) gui->playlist->add_track(gui->playlist, filename, NULL, filepart, 0); mp_msg(MSGT_GPLAYER, MSGL_V, "[GUI] Adding file: %s - path %s\n", filespec, filename); @@ -791,6 +792,7 @@ int i=0, j=0; char titles[MAX_PATH] = ""; char chapters[MAX_PATH] = ""; + gui_t *gui = (gui_t *) GetWindowLongPtr(hwnd, GWLP_USERDATA); switch (iMsg) { case WM_CREATE: @@ -859,9 +861,7 @@ if((guiIntfStruct.DVD.current_title != 0 || guiIntfStruct.DVD.current_chapter != 0)) { - mplGotoTheNext = 0; - guiGetEvent(guiCEvent, (void *) guiSetStop); - guiGetEvent(guiCEvent, (void *) guiSetPlay); + gui->startplay(gui); DestroyWindow(hwnd); } }