mirror of https://git.ffmpeg.org/ffmpeg.git
ffserver: reflow http_vlog()
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
This commit is contained in:
parent
1f13348f7d
commit
e97545646a
|
@ -314,7 +314,10 @@ static char *ctime1(char *buf2, int buf_size)
|
||||||
static void http_vlog(const char *fmt, va_list vargs)
|
static void http_vlog(const char *fmt, va_list vargs)
|
||||||
{
|
{
|
||||||
static int print_prefix = 1;
|
static int print_prefix = 1;
|
||||||
if (logfile) {
|
|
||||||
|
if (!logfile)
|
||||||
|
return;
|
||||||
|
|
||||||
if (print_prefix) {
|
if (print_prefix) {
|
||||||
char buf[32];
|
char buf[32];
|
||||||
ctime1(buf, sizeof(buf));
|
ctime1(buf, sizeof(buf));
|
||||||
|
@ -323,7 +326,6 @@ static void http_vlog(const char *fmt, va_list vargs)
|
||||||
print_prefix = strstr(fmt, "\n") != NULL;
|
print_prefix = strstr(fmt, "\n") != NULL;
|
||||||
vfprintf(logfile, fmt, vargs);
|
vfprintf(logfile, fmt, vargs);
|
||||||
fflush(logfile);
|
fflush(logfile);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
|
|
Loading…
Reference in New Issue