[vlc-commits] avcodec: simplify the log generation
    Steve Lhomme 
    git at videolan.org
       
    Fri Jan 27 10:56:43 CET 2017
    
    
  
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Thu Jan 26 15:15:47 2017 +0100| [2be0eca256f7b70598234b13a187de4e856410c7] | committer: Jean-Baptiste Kempf
avcodec: simplify the log generation
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2be0eca256f7b70598234b13a187de4e856410c7
---
 modules/codec/avcodec/video.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 9086c20..dc477f8 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -1173,16 +1173,14 @@ static int lavc_dr_GetFrame(struct AVCodecContext *ctx, AVFrame *frame,
         if (pic->p[i].i_pitch % aligns[i])
         {
             if (!atomic_exchange(&sys->b_dr_failure, true))
-                msg_Warn(dec, "plane %d: pitch not aligned (%d%%%d): %s",
-                         i, pic->p[i].i_pitch, aligns[i],
-                         "disabling direct rendering");
+                msg_Warn(dec, "plane %d: pitch not aligned (%d%%%d): disabling direct rendering",
+                         i, pic->p[i].i_pitch, aligns[i]);
             goto error;
         }
         if (((uintptr_t)pic->p[i].p_pixels) % aligns[i])
         {
             if (!atomic_exchange(&sys->b_dr_failure, true))
-                msg_Warn(dec, "plane %d not aligned: %s", i,
-                         "disabling direct rendering");
+                msg_Warn(dec, "plane %d not aligned: disabling direct rendering", i);
             goto error;
         }
     }
    
    
More information about the vlc-commits
mailing list