[vlc-devel] [PATCH 21/42] vout: remove tautology

Rémi Denis-Courmont remi at remlab.net
Fri Jun 28 20:30:09 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.1




More information about the vlc-devel mailing list