[MPlayer-cvslog] r35445 - trunk/gui/ui/main.c

ib subversion at mplayerhq.hu
Thu Nov 22 15:01:41 CET 2012


Author: ib
Date: Thu Nov 22 15:01:41 2012
New Revision: 35445

Log:
Fix segmentation fault with mouse button release.

This happens if, after selecting a file from the file selector, the mouse
pointer happens to be over a GUI item when being released (an item which
hasn't been previously selected).

Modified:
   trunk/gui/ui/main.c

Modified: trunk/gui/ui/main.c
==============================================================================
--- trunk/gui/ui/main.c	Thu Nov 22 14:57:40 2012	(r35444)
+++ trunk/gui/ui/main.c	Thu Nov 22 15:01:41 2012	(r35445)
@@ -484,8 +484,8 @@ void uiMainMouseHandle( int Button,int X
             item=&guiApp.mainItems[SelectedItem];
             item->pressed=btnReleased;
            }
+          if ( currentselected == - 1 || SelectedItem == -1 ) { itemtype=0; break; }
           SelectedItem=-1;
-          if ( currentselected == - 1 ) { itemtype=0; break; }
           value=0;
           switch( itemtype )
            {


More information about the MPlayer-cvslog mailing list