Mercurial > mplayer.hg
comparison libvo/vo_corevideo.m @ 34875:444a6a469743
Remove unnecessary if, free can be called unconditionally.
author | reimar |
---|---|
date | Wed, 23 May 2012 19:17:30 +0000 |
parents | 5ed9693f8071 |
children | c5f89bf5b952 |
comparison
equal
deleted
inserted
replaced
34874:9fbab723e75a | 34875:444a6a469743 |
---|---|
151 | 151 |
152 if (shm_unlink(buffer_name) == -1) | 152 if (shm_unlink(buffer_name) == -1) |
153 mp_msg(MSGT_VO, MSGL_FATAL, "[vo_corevideo] uninit: shm_unlink failed. Error: %s\n", strerror(errno)); | 153 mp_msg(MSGT_VO, MSGL_FATAL, "[vo_corevideo] uninit: shm_unlink failed. Error: %s\n", strerror(errno)); |
154 } else { | 154 } else { |
155 free(image_datas[0]); | 155 free(image_datas[0]); |
156 if (vo_doublebuffering) | 156 free(image_datas[1]); |
157 free(image_datas[1]); | |
158 image_datas[0] = NULL; | 157 image_datas[0] = NULL; |
159 image_datas[1] = NULL; | 158 image_datas[1] = NULL; |
160 image_data = NULL; | 159 image_data = NULL; |
161 } | 160 } |
162 } | 161 } |