[MPlayer-cvslog] r30602 - trunk/libvo/vo_dxr3.c

reimar subversion at mplayerhq.hu
Tue Feb 16 20:36:36 CET 2010


Author: reimar
Date: Tue Feb 16 20:36:36 2010
New Revision: 30602

Log:
Remove useless malloc casts.

Modified:
   trunk/libvo/vo_dxr3.c

Modified: trunk/libvo/vo_dxr3.c
==============================================================================
--- trunk/libvo/vo_dxr3.c	Tue Feb 16 20:34:41 2010	(r30601)
+++ trunk/libvo/vo_dxr3.c	Tue Feb 16 20:36:36 2010	(r30602)
@@ -458,13 +458,13 @@ static int config(uint32_t width, uint32
 		mp_msg(MSGT_VO,MSGL_ERR, MSGTR_LIBVO_DXR3_OutOfMemory);
 		return -1;
 	}
-	spued = (encodedata *) malloc(sizeof(encodedata));
+	spued = malloc(sizeof(encodedata));
 	if (spued == NULL) {
 	        free( osdpicbuf );
 		mp_msg(MSGT_VO,MSGL_ERR, MSGTR_LIBVO_DXR3_OutOfMemory);
 		return -1;
 	}
-	spubuf = (encodedata *) malloc(sizeof(encodedata));
+	spubuf = malloc(sizeof(encodedata));
 	if (spubuf == NULL) {
 	        free( osdpicbuf );
 		free( spued );
@@ -949,7 +949,7 @@ static overlay_t *overlay_init(int dev)
 {
     overlay_t *o;
 
-    o = (overlay_t *) malloc(sizeof(overlay_t));
+    o = malloc(sizeof(overlay_t));
 
     if(!o)
 	return NULL;


More information about the MPlayer-cvslog mailing list