[vlc-commits] spu: remove useless check

Rémi Denis-Courmont git at videolan.org
Wed Jul 26 20:32:28 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jul 26 21:07:48 2017 +0300| [3917462779e0009e070b2c95d48782c4f806289f] | committer: Rémi Denis-Courmont

spu: remove useless check

filter_chain_Reset(NULL, NULL) is a no-op on an empty chain.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3917462779e0009e070b2c95d48782c4f806289f
---

 src/video_output/vout_subpictures.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index acc0173518..3a66e0ddd8 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -1434,7 +1434,7 @@ void spu_PutSubpicture(spu_t *spu, subpicture_t *subpic)
                                      SubFilterAddProxyCallbacks,
                                      sys->vout);
         }
-        else if (filter_chain_GetLength(spu->p->filter_chain) > 0)
+        else
             filter_chain_Reset(sys->filter_chain, NULL, NULL);
 
         /* "sub-source"  was formerly "sub-filter", so now the "sub-filter"



More information about the vlc-commits mailing list