1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-31 04:02:06 +00:00

fix to allow adding multiple files to the playlist with the open file dialog.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21786 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
vayne 2006-12-29 18:35:22 +00:00
parent 25c101261b
commit 43592897f2
2 changed files with 2 additions and 1 deletions

View File

@ -143,7 +143,7 @@ int display_openfilewindow(gui_t *gui, int add)
{
if (GetFullPathName(filename, MAX_PATH, filename, &filepart))
{
if(!parse_filename(filename, playtree, mconfig, add? 0 : 1))
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);
result++;

View File

@ -181,6 +181,7 @@ static void handlemsg(HWND hWnd, int msg)
case evLoadPlay:
case evLoad:
if(display_openfilewindow(gui, 0) && (msg == evLoadPlay))
mplGotoTheNext = guiIntfStruct.Playing? 0 : 1;
handlemsg(hWnd, evDropFile);
return;
case evLoadSubtitle: