comparison mplayer.c @ 32537:8fa2f43cb760

Remove most of the NULL pointer check before free all over the code
author cboesch
date Sun, 14 Nov 2010 09:12:34 +0000
parents b39155e98ac3
children 18338ee51c9d
comparison
equal deleted inserted replaced
32536:187f26cba0ce 32537:8fa2f43cb760
1150 ++mpctx->set_of_sub_size; 1150 ++mpctx->set_of_sub_size;
1151 } 1151 }
1152 } 1152 }
1153 1153
1154 void init_vo_spudec(void) { 1154 void init_vo_spudec(void) {
1155 if (vo_spudec) 1155 spudec_free(vo_spudec);
1156 spudec_free(vo_spudec);
1157 vo_spudec = NULL; 1156 vo_spudec = NULL;
1158 1157
1159 // we currently can't work without video stream 1158 // we currently can't work without video stream
1160 if (!mpctx->sh_video) 1159 if (!mpctx->sh_video)
1161 return; 1160 return;