Mercurial > mplayer.hg
changeset 35367:f1bd28a00384
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.
author | ib |
---|---|
date | Fri, 23 Nov 2012 14:17:21 +0000 |
parents | 92cafcf6f6b2 |
children | 7e303b6aafca |
files | gui/ui/playbar.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/ui/playbar.c Fri Nov 23 14:10:10 2012 +0000 +++ b/gui/ui/playbar.c Fri Nov 23 14:17:21 2012 +0000 @@ -167,8 +167,8 @@ 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 )