[Mplayer-cvslog] CVS: 0_90/Gui/mplayer pb.c,1.4,1.5
Arpi of Ize
arpi at mplayerhq.hu
Sat Mar 22 17:27:56 CET 2003
Update of /cvsroot/mplayer/0_90/Gui/mplayer
In directory mail:/var/tmp.root/cvs-serv25558/mplayer
Modified Files:
pb.c
Log Message:
backport: (probably) 10l fixes
Index: pb.c
===================================================================
RCS file: /cvsroot/mplayer/0_90/Gui/mplayer/pb.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- pb.c 6 Feb 2003 22:44:52 -0000 1.4
+++ pb.c 22 Mar 2003 16:27:53 -0000 1.5
@@ -214,13 +214,13 @@
void mplPBInit( void )
{
- gfree( (void**)&mplPBDrawBuffer );
-
if ( !appMPlayer.barIsPresent ) return;
- if ( ( mplPBDrawBuffer = (unsigned char *)calloc( 1,appMPlayer.bar.Bitmap.ImageSize ) ) == NULL )
+ gfree( (void**)&mplPBDrawBuffer );
+
+ if ( ( mplPBDrawBuffer = (unsigned char *)malloc( appMPlayer.bar.Bitmap.ImageSize ) ) == NULL )
{
- fprintf( stderr,MSGTR_NEMDB );
+ mp_msg( MSGT_GPLAYER,MSGL_FATAL,MSGTR_NEMDB );
exit( 0 );
}
More information about the MPlayer-cvslog
mailing list