[MPlayer-cvslog] r20137 - trunk/Gui/win32/dialogs.c
vayne
subversion at mplayerhq.hu
Mon Oct 9 20:21:52 CEST 2006
Author: vayne
Date: Mon Oct 9 20:21:50 2006
New Revision: 20137
Modified:
trunk/Gui/win32/dialogs.c
Log:
fixed a crash bug as a result of the last change, as well as file skipping (hopefully)
Modified: trunk/Gui/win32/dialogs.c
==============================================================================
--- trunk/Gui/win32/dialogs.c (original)
+++ trunk/Gui/win32/dialogs.c Mon Oct 9 20:21:50 2006
@@ -531,9 +531,9 @@
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 @@
case ID_PLAY:
{
if(selected) pl->current = selected - 1;
+ mplSetFileName(NULL, pl->tracks[pl->current]->filename, STREAMTYPE_STREAM);
mplGotoTheNext = 0;
gui->startplay(gui);
break;
More information about the MPlayer-cvslog
mailing list