diff options
author | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-30 21:39:31 +0000 |
---|---|---|
committer | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-30 21:39:31 +0000 |
commit | 6e018b0f5a11814e27e0982810df8db47f27f16a (patch) | |
tree | e97997764e4db54ea051c2ac1c57ce037b8683fb /Gui | |
parent | ed6cd2cbd1f0faef87ade5ffd2908f1f1df57603 (diff) |
fix load
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1790 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui')
-rw-r--r-- | Gui/mplayer/psignal.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Gui/mplayer/psignal.c b/Gui/mplayer/psignal.c index 3af2283af1..0d8eb9bdf3 100644 --- a/Gui/mplayer/psignal.c +++ b/Gui/mplayer/psignal.c @@ -266,9 +266,7 @@ void mplMainSigHandler( int s ) } break; case evFileLoaded: - if ( Filename ) free( Filename ); - Filename=(char *)malloc( strlen( gtkShMem->fs.dir ) + strlen( gtkShMem->fs.filename ) + 2 ); - strcpy( Filename,gtkShMem->fs.dir ); strcat( Filename,"/" ); strcat( Filename,gtkShMem->fs.filename ); + strcpy( mplShMem->Filename,gtkShMem->fs.dir ); strcat( mplShMem->Filename,"/" ); strcat( mplShMem->Filename,gtkShMem->fs.filename ); if ( mplMainAutoPlay ) mplGeneralTimer=1; break; case evMessageBox: |