[FFmpeg-cvslog] ffserver: reflow http_vlog()

Reynaldo H. Verdejo Pinochet git at videolan.org
Sat Jan 24 06:31:08 CET 2015


ffmpeg | branch: master | Reynaldo H. Verdejo Pinochet <reynaldo at osg.samsung.com> | Sat Jan 24 01:10:35 2015 -0300| [e97545646af74536a3674954ade51464f51f38dc] | committer: Reynaldo H. Verdejo Pinochet

ffserver: reflow http_vlog()

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo at osg.samsung.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e97545646af74536a3674954ade51464f51f38dc
---

 ffserver.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/ffserver.c b/ffserver.c
index 0b69196..6d75ad6 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -314,7 +314,10 @@ static char *ctime1(char *buf2, int buf_size)
 static void http_vlog(const char *fmt, va_list vargs)
 {
     static int print_prefix = 1;
-    if (logfile) {
+
+    if (!logfile)
+        return;
+
         if (print_prefix) {
             char buf[32];
             ctime1(buf, sizeof(buf));
@@ -323,7 +326,6 @@ static void http_vlog(const char *fmt, va_list vargs)
         print_prefix = strstr(fmt, "\n") != NULL;
         vfprintf(logfile, fmt, vargs);
         fflush(logfile);
-    }
 }
 
 #ifdef __GNUC__



More information about the ffmpeg-cvslog mailing list