Mercurial > mplayer.hg
comparison Gui/win32/interface.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 | b83cefcd7e41 |
children | 2ec2301183cd |
comparison
equal
deleted
inserted
replaced
19060:b508e7ef1ea8 | 19061:86350b4b8203 |
---|---|
264 } | 264 } |
265 break; | 265 break; |
266 } | 266 } |
267 case evMute: | 267 case evMute: |
268 { | 268 { |
269 mp_cmd_t * cmd = (mp_cmd_t *)calloc(1, sizeof(*cmd)); | 269 mp_cmd_t * cmd = calloc(1, sizeof(*cmd)); |
270 cmd->id=MP_CMD_MUTE; | 270 cmd->id=MP_CMD_MUTE; |
271 cmd->name=strdup("mute"); | 271 cmd->name=strdup("mute"); |
272 mp_input_queue_cmd(cmd); | 272 mp_input_queue_cmd(cmd); |
273 break; | 273 break; |
274 } | 274 } |
309 { | 309 { |
310 if(!guiIntfStruct.Playing) return; | 310 if(!guiIntfStruct.Playing) return; |
311 | 311 |
312 if(guiIntfStruct.Playing == 1) | 312 if(guiIntfStruct.Playing == 1) |
313 { | 313 { |
314 mp_cmd_t * cmd = (mp_cmd_t *)calloc(1, sizeof(*cmd)); | 314 mp_cmd_t * cmd = calloc(1, sizeof(*cmd)); |
315 cmd->id=MP_CMD_PAUSE; | 315 cmd->id=MP_CMD_PAUSE; |
316 cmd->name=strdup("pause"); | 316 cmd->name=strdup("pause"); |
317 mp_input_queue_cmd(cmd); | 317 mp_input_queue_cmd(cmd); |
318 } else guiIntfStruct.Playing = 1; | 318 } else guiIntfStruct.Playing = 1; |
319 } | 319 } |