[vlc-commits] spu: remove redundant check
Rémi Denis-Courmont
git at videolan.org
Mon Jan 28 21:38:05 CET 2019
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jan 28 22:05:22 2019 +0200| [7ef0a90c7de724ed0b07ff585216a100e41cbc37] | committer: Rémi Denis-Courmont
spu: remove redundant check
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7ef0a90c7de724ed0b07ff585216a100e41cbc37
---
src/video_output/vout_subpictures.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index 905159c143..b13963869d 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -1486,8 +1486,7 @@ void spu_PutSubpicture(spu_t *spu, subpicture_t *subpic)
if (chain_update && *chain_update) {
vlc_mutex_lock(&sys->lock);
if (!sys->source_chain_update || !*sys->source_chain_update) {
- if (sys->source_chain_update)
- free(sys->source_chain_update);
+ free(sys->source_chain_update);
sys->source_chain_update = chain_update;
sys->source_chain_current = strdup(chain_update);
chain_update = NULL;
More information about the vlc-commits
mailing list