1
mirror of https://github.com/mpv-player/mpv synced 2025-01-20 21:07:29 +01:00

mem corruption bug fix.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4853 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pontscho 2002-02-24 21:57:16 +00:00
parent 367e5bd0b8
commit 54ae2281a6
2 changed files with 3 additions and 2 deletions

View File

@ -95,6 +95,7 @@ extern guiInterface_t guiIntfStruct;
#define guiXEvent 0
#define guiCEvent 1
#define guiIEvent 2
extern void guiInit( int argc,char* argv[], char *envp[] );
extern void guiGetEvent( int type,char * arg );
@ -102,7 +103,7 @@ extern void guiEventHandling( void );
#define gstrdup( s,ss ) { s=malloc( strlen( ss ) + 3 ); strcpy( s,ss ); }
#define guiSetFilename( s,n ) { s=strdup( n ); }
#define guiSetFilename( s,n ) { if ( s ) free( s ); s=strdup( n ); }
#define guiSetDF( s,d,n ) \
{ \

View File

@ -1415,7 +1415,7 @@ current_module="init_libvo";
guiIntfStruct.MovieWidth=sh_video->disp_w;
guiIntfStruct.MovieHeight=sh_video->disp_h;
guiIntfStruct.StreamType=stream->type;
guiIntfStruct.Filename=filename;
guiSetFilename( guiIntfStruct.Filename,filename );
}
#endif