[MPlayer-cvslog] r35461 - trunk/gui/ui/playbar.c

ib subversion at mplayerhq.hu
Fri Nov 23 15:17:21 CET 2012


Author: ib
Date: Fri Nov 23 15:17:21 2012
New Revision: 35461

Log:
Fix segmentation fault with mouse button release.

This should have been part of r35445, but has been forgotten. In r35445
only the main window has been fixed while this fixes the playbar window.

Modified:
   trunk/gui/ui/playbar.c

Modified: trunk/gui/ui/playbar.c
==============================================================================
--- trunk/gui/ui/playbar.c	Fri Nov 23 15:10:10 2012	(r35460)
+++ trunk/gui/ui/playbar.c	Fri Nov 23 15:17:21 2012	(r35461)
@@ -167,8 +167,8 @@ static void uiPlaybarMouseHandle( int Bu
           item=&guiApp.playbarItems[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