vout_intf: remove local write-only variable
authorSteve Lhomme <robUx4@videolabs.io>
Wed, 12 Jul 2017 14:51:22 +0000 (16:51 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 21 Jul 2017 12:11:45 +0000 (14:11 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
src/video_output/vout_intf.c

index 631099c..459e8d8 100644 (file)
@@ -381,11 +381,10 @@ static void VoutSaveSnapshot( vout_thread_t *p_vout )
     /* */
     picture_t *p_picture;
     block_t *p_image;
-    video_format_t fmt;
 
     /* 500ms timeout
      * XXX it will cause trouble with low fps video (< 2fps) */
-    if( vout_GetSnapshot( p_vout, &p_image, &p_picture, &fmt, psz_format, 500*1000 ) )
+    if( vout_GetSnapshot( p_vout, &p_image, &p_picture, NULL, psz_format, 500*1000 ) )
     {
         p_picture = NULL;
         p_image = NULL;