[Mplayer-cvslog] CVS: main/Gui/mplayer mw.h,1.47,1.48

Zoltan Ponekker pontscho at mplayer.dev.hu
Thu Mar 7 16:06:04 CET 2002


Update of /cvsroot/mplayer/main/Gui/mplayer
In directory mplayer:/var/tmp.root/cvs-serv601/mplayer

Modified Files:
	mw.h 
Log Message:
PlayToPause bug with mouse fixed

Index: mw.h
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/mw.h,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- mw.h	7 Mar 2002 11:57:32 -0000	1.47
+++ mw.h	7 Mar 2002 15:06:02 -0000	1.48
@@ -23,7 +23,8 @@
    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" );




More information about the MPlayer-cvslog mailing list