From a02f6a7b0e906255c71784f481c87e0a7680e239 Mon Sep 17 00:00:00 2001 From: pontscho Date: Thu, 30 Aug 2001 16:49:46 +0000 Subject: [PATCH] hm. optim git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1778 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Gui/mplayer/mw.h | 2 +- Gui/mplayer/play.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gui/mplayer/mw.h b/Gui/mplayer/mw.h index f31483bd82..af358d7694 100644 --- a/Gui/mplayer/mw.h +++ b/Gui/mplayer/mw.h @@ -147,7 +147,7 @@ void mplMainDraw( wsParamDisplay ) btnModify( evPauseSwitchToPlay,btnDisabled ); break; case 1: - if ( strlen( mplShMem->Filename ) ) + if ( mplShMem->Filename[0] != 0 ) { btnModify( evPlaySwitchToPause,btnDisabled ); btnModify( evPauseSwitchToPlay,btnReleased ); diff --git a/Gui/mplayer/play.c b/Gui/mplayer/play.c index 36093bfa45..add645aa37 100644 --- a/Gui/mplayer/play.c +++ b/Gui/mplayer/play.c @@ -57,7 +57,7 @@ printf("%%%%%% STOP \n"); void mplPlay( void ) { - if ( !strlen( mplShMem->Filename ) ) return; + if ( strlen( mplShMem->Filename ) == 0 ) return; if ( mplShMem->Playing ) mplStop(); // --- printf("%%%%%% PLAY \n");