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:
parent
25c101261b
commit
43592897f2
@ -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++;
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user