summaryrefslogtreecommitdiffstats
path: root/Gui
diff options
context:
space:
mode:
authorvayne <vayne@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-10-09 18:21:50 +0000
committervayne <vayne@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-10-09 18:21:50 +0000
commitddc392e2b465c02bb72fc5a411bd94842f905ddc (patch)
treec5ecc229ddbadd3198a3515ae805872bc6d80348 /Gui
parent37f549101bf51edd3e11045a40231b5c9eb66740 (diff)
downloadmpv-ddc392e2b465c02bb72fc5a411bd94842f905ddc.tar.bz2
mpv-ddc392e2b465c02bb72fc5a411bd94842f905ddc.tar.xz
fixed a crash bug as a result of the last change, as well as file skipping (hopefully)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20137 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui')
-rw-r--r--Gui/win32/dialogs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Gui/win32/dialogs.c b/Gui/win32/dialogs.c
index ebd5e3822a..4f662c3b40 100644
--- a/Gui/win32/dialogs.c
+++ b/Gui/win32/dialogs.c
@@ -531,9 +531,9 @@ static LRESULT CALLBACK PlayListWndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPA
case ID_TRACKLIST:
if(HIWORD(wParam) == LBN_DBLCLK)
{
- if(guiIntfStruct.Playing && selected)
- pl->current = selected - 2;
- else if(selected) pl->current = selected - 1;
+ if(selected) pl->current = selected - 1;
+ mplSetFileName(NULL, pl->tracks[pl->current]->filename, STREAMTYPE_STREAM);
+ mplGotoTheNext = 0;
gui->startplay(gui);
}
return 0;
@@ -552,6 +552,7 @@ static LRESULT CALLBACK PlayListWndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPA
case ID_PLAY:
{
if(selected) pl->current = selected - 1;
+ mplSetFileName(NULL, pl->tracks[pl->current]->filename, STREAMTYPE_STREAM);
mplGotoTheNext = 0;
gui->startplay(gui);
break;