[vlc-devel] [PATCH 20/48] vout: remove tautology

Rémi Denis-Courmont remi at remlab.net
Tue Jul 2 19:51:46 CEST 2013


todisplay cannot be NULL there since its two possible values are
checked already.
---
 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);
-- 
1.8.3.2




More information about the vlc-devel mailing list