Mercurial > mplayer.hg
diff Gui/mplayer/play.c @ 19061:86350b4b8203
drops casts from void * on malloc/calloc from the gui code
author | reynaldo |
---|---|
date | Thu, 13 Jul 2006 16:17:24 +0000 |
parents | 0e1471d9da74 |
children | 64d82a45a05d |
line wrap: on
line diff
--- a/Gui/mplayer/play.c Thu Jul 13 13:28:56 2006 +0000 +++ b/Gui/mplayer/play.c Thu Jul 13 16:17:24 2006 +0000 @@ -127,7 +127,7 @@ if ( !guiIntfStruct.Playing ) return; if ( guiIntfStruct.Playing == 1 ) { - mp_cmd_t * cmd = (mp_cmd_t *)calloc( 1,sizeof( *cmd ) ); + mp_cmd_t * cmd = calloc( 1,sizeof( *cmd ) ); cmd->id=MP_CMD_PAUSE; cmd->name=strdup("pause"); mp_input_queue_cmd(cmd); @@ -194,7 +194,7 @@ if ( prev && appMPlayer.menuIsPresent ) { if ( mplMenuDrawBuffer ) free( mplMenuDrawBuffer ); - if ( ( mplMenuDrawBuffer = (unsigned char *)calloc( 1,appMPlayer.menuBase.Bitmap.ImageSize ) ) == NULL ) + if ( ( mplMenuDrawBuffer = calloc( 1,appMPlayer.menuBase.Bitmap.ImageSize ) ) == NULL ) { mp_msg( MSGT_GPLAYER,MSGL_STATUS,MSGTR_NEMDB ); return; } wsResizeWindow( &appMPlayer.menuWindow,appMPlayer.menuBase.width,appMPlayer.menuBase.height ); wsResizeImage( &appMPlayer.menuWindow,appMPlayer.menuBase.width,appMPlayer.menuBase.height ); @@ -224,7 +224,7 @@ // --- reload main window if ( mplDrawBuffer ) free( mplDrawBuffer ); - if ( ( mplDrawBuffer = (unsigned char *)calloc( 1,appMPlayer.main.Bitmap.ImageSize ) ) == NULL ) + if ( ( mplDrawBuffer = calloc( 1,appMPlayer.main.Bitmap.ImageSize ) ) == NULL ) { mp_msg( MSGT_GPLAYER,MSGL_STATUS,MSGTR_NEMDB ); return; } wsDestroyWindow( &appMPlayer.mainWindow );