changeset 30560:5404e0c3acce

Remove useless malloc casts.
author reimar
date Tue, 16 Feb 2010 19:36:36 +0000
parents 10b0a635293b
children 84d86f175613
files libvo/vo_dxr3.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_dxr3.c	Tue Feb 16 19:34:41 2010 +0000
+++ b/libvo/vo_dxr3.c	Tue Feb 16 19:36:36 2010 +0000
@@ -458,13 +458,13 @@
 		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 @@
 {
     overlay_t *o;
 
-    o = (overlay_t *) malloc(sizeof(overlay_t));
+    o = malloc(sizeof(overlay_t));
 
     if(!o)
 	return NULL;