[MPlayer-cvslog] r37336 - trunk/libmpcodecs/vf_screenshot.c

reimar subversion at mplayerhq.hu
Sat Dec 6 22:17:44 CET 2014


Author: reimar
Date: Sat Dec  6 22:17:43 2014
New Revision: 37336

Log:
vf_screenshot: print message after file was written.

This is easier to process from programs using slave mode.
Patch by Anton Sviridenko [anton corp.bluecherry net]

Modified:
   trunk/libmpcodecs/vf_screenshot.c

Modified: trunk/libmpcodecs/vf_screenshot.c
==============================================================================
--- trunk/libmpcodecs/vf_screenshot.c	Sat Dec  6 15:13:38 2014	(r37335)
+++ trunk/libmpcodecs/vf_screenshot.c	Sat Dec  6 22:17:43 2014	(r37336)
@@ -121,6 +121,7 @@ static void write_png(struct vf_priv_s *
         fwrite(priv->outbuffer, pkt.size, 1, fp);
 
     fclose (fp);
+    mp_msg(MSGT_VFILTER,MSGL_INFO,"*** screenshot '%s' ***\n",priv->fname);
 }
 
 static int fexists(char *fname)
@@ -138,9 +139,6 @@ static void gen_fname(struct vf_priv_s* 
         priv->fname[0] = '\0';
         return;
     }
-
-    mp_msg(MSGT_VFILTER,MSGL_INFO,"*** screenshot '%s' ***\n",priv->fname);
-
 }
 
 static void scale_image(struct vf_priv_s* priv, mp_image_t *mpi)


More information about the MPlayer-cvslog mailing list