changeset 1777:fcba80a2e79f

hm. optim
author pontscho
date Thu, 30 Aug 2001 16:49:46 +0000
parents 48e6351f5714
children 6adf80f99796
files Gui/mplayer/mw.h Gui/mplayer/play.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/mplayer/mw.h	Thu Aug 30 16:11:59 2001 +0000
+++ b/Gui/mplayer/mw.h	Thu Aug 30 16:49:46 2001 +0000
@@ -147,7 +147,7 @@
         btnModify( evPauseSwitchToPlay,btnDisabled );
 	break;
    case 1:
-        if ( strlen( mplShMem->Filename ) )
+        if ( mplShMem->Filename[0] != 0 )
 	 {
           btnModify( evPlaySwitchToPause,btnDisabled );
 	  btnModify( evPauseSwitchToPlay,btnReleased );
--- a/Gui/mplayer/play.c	Thu Aug 30 16:11:59 2001 +0000
+++ b/Gui/mplayer/play.c	Thu Aug 30 16:49:46 2001 +0000
@@ -57,7 +57,7 @@
 
 void mplPlay( void )
 {
- if ( !strlen( mplShMem->Filename ) ) return;
+ if ( strlen( mplShMem->Filename ) == 0 ) return;
  if ( mplShMem->Playing ) mplStop();
 // ---
 printf("%%%%%% PLAY  \n");