mirror of https://github.com/mpv-player/mpv
Remove useless malloc casts.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30602 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
091e2a4313
commit
0dc08a811d
|
@ -458,13 +458,13 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_
|
||||||
mp_msg(MSGT_VO,MSGL_ERR, MSGTR_LIBVO_DXR3_OutOfMemory);
|
mp_msg(MSGT_VO,MSGL_ERR, MSGTR_LIBVO_DXR3_OutOfMemory);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
spued = (encodedata *) malloc(sizeof(encodedata));
|
spued = malloc(sizeof(encodedata));
|
||||||
if (spued == NULL) {
|
if (spued == NULL) {
|
||||||
free( osdpicbuf );
|
free( osdpicbuf );
|
||||||
mp_msg(MSGT_VO,MSGL_ERR, MSGTR_LIBVO_DXR3_OutOfMemory);
|
mp_msg(MSGT_VO,MSGL_ERR, MSGTR_LIBVO_DXR3_OutOfMemory);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
spubuf = (encodedata *) malloc(sizeof(encodedata));
|
spubuf = malloc(sizeof(encodedata));
|
||||||
if (spubuf == NULL) {
|
if (spubuf == NULL) {
|
||||||
free( osdpicbuf );
|
free( osdpicbuf );
|
||||||
free( spued );
|
free( spued );
|
||||||
|
@ -949,7 +949,7 @@ static overlay_t *overlay_init(int dev)
|
||||||
{
|
{
|
||||||
overlay_t *o;
|
overlay_t *o;
|
||||||
|
|
||||||
o = (overlay_t *) malloc(sizeof(overlay_t));
|
o = malloc(sizeof(overlay_t));
|
||||||
|
|
||||||
if(!o)
|
if(!o)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue