[MPlayer-cvslog] r20002 - trunk/Gui/win32/dialogs.c

vayne subversion at mplayerhq.hu
Thu Sep 28 22:42:04 CEST 2006


Author: vayne
Date: Thu Sep 28 22:42:03 2006
New Revision: 20002

Modified:
   trunk/Gui/win32/dialogs.c

Log:
bug fix for replaying files when double clicking in the playlist.

Modified: trunk/Gui/win32/dialogs.c
==============================================================================
--- trunk/Gui/win32/dialogs.c	(original)
+++ trunk/Gui/win32/dialogs.c	Thu Sep 28 22:42:03 2006
@@ -531,8 +531,9 @@
                 case ID_TRACKLIST:
                     if(HIWORD(wParam) == LBN_DBLCLK)
                     {
-                        if(selected) pl->current = selected - 1;
-                        mplGotoTheNext = 0;
+                        if(guiIntfStruct.Playing && selected)
+                            pl->current = selected - 2;
+                        else if(selected) pl->current = selected - 1;
                         gui->startplay(gui);
                     }
                     return 0;



More information about the MPlayer-cvslog mailing list