[vlc-commits] vout: remove tautology

Rémi Denis-Courmont git at videolan.org
Tue Jul 2 22:47:41 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jul  2 20:51:46 2013 +0300| [227f5875cacc99659d3e7290d31dd7c480aa76b1] | committer: Rafaël Carré

vout: remove tautology

todisplay cannot be NULL there since its two possible values are
checked already.

Signed-off-by: Rafaël Carré <funman at videolan.org>

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

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

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 35e7a18..8c4b329 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -987,7 +987,7 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced)
     }
 
     picture_t *direct;
-    if (!is_direct && todisplay) {
+    if (!is_direct) {
         direct = picture_pool_Get(vout->p->display_pool);
         if (direct) {
             VideoFormatCopyCropAr(&direct->format, &todisplay->format);



More information about the vlc-commits mailing list