diff options
author | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-07 15:06:02 +0000 |
---|---|---|
committer | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-07 15:06:02 +0000 |
commit | d7bb353d156114e8aa57f10860cd476a7c326c94 (patch) | |
tree | 063442f86777f3e3442f7e392826006b6b50c93f /Gui/mplayer | |
parent | c84999a9050a62cacea524503249b95de9990719 (diff) | |
download | mpv-d7bb353d156114e8aa57f10860cd476a7c326c94.tar.bz2 mpv-d7bb353d156114e8aa57f10860cd476a7c326c94.tar.xz |
PlayToPause bug with mouse fixed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4980 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/mplayer')
-rw-r--r-- | Gui/mplayer/mw.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Gui/mplayer/mw.h b/Gui/mplayer/mw.h index fc39df24ef..c4b5de0a1e 100644 --- a/Gui/mplayer/mw.h +++ b/Gui/mplayer/mw.h @@ -23,7 +23,8 @@ inline void TranslateFilename( int c,char * tmp ) case STREAMTYPE_FILE: if ( ( guiIntfStruct.Filename )&&( guiIntfStruct.Filename[0] ) ) { - strcpy( tmp,guiIntfStruct.Filename ); + if ( strrchr( guiIntfStruct.Filename,'/' ) ) strcpy( tmp,strrchr( guiIntfStruct.Filename,'/' ) + 1 ); + else strcpy( tmp,guiIntfStruct.Filename ); if ( tmp[strlen( tmp ) - 4] == '.' ) tmp[strlen( tmp ) - 4]=0; if ( tmp[strlen( tmp ) - 5] == '.' ) tmp[strlen( tmp ) - 5]=0; } else strcpy( tmp,"no file loaded" ); |