[FFmpeg-devel] "OPW Qualification Task: Enable daemon mode for FFserver"

Binathi Bingi binti179 at gmail.com
Thu Oct 30 09:17:12 CET 2014


I see your point.
Changing the ffserver_config.c would help in addressing config files having
NoDaemon option.
You were right! Thanks.


>From 476c8605fab4d6c575c38796dd9dccaf854cf536 Mon Sep 17 00:00:00 2001
From: Binathi Bingi <binti179 at gmail.com>
Date: Thu, 30 Oct 2014 13:43:13 +0530
Subject: [PATCH] Restoring back NoDaemon option in ffserver.conf

---
 ffserver_config.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ffserver_config.c b/ffserver_config.c
index e2c78d8..ab33ec5 100644
--- a/ffserver_config.c
+++ b/ffserver_config.c
@@ -358,6 +358,8 @@ static int ffserver_parse_config_global(FFServerConfig
*config, const char *cmd,
         ffserver_get_arg(arg, sizeof(arg), p);
         if (resolve_host(&config->http_addr.sin_addr, arg) != 0)
             ERROR("%s:%d: Invalid host/IP address: %s\n", arg);
+    } else if (!av_strcasecmp(cmd, "NoDaemon")) {
+            WARNING("NoDaemon option has no effect, you should remove
it\n");
     } else if (!av_strcasecmp(cmd, "RTSPPort")) {
         ffserver_get_arg(arg, sizeof(arg), p);
         val = atoi(arg);
-- 
1.9.1


Binathi

On Thu, Oct 30, 2014 at 8:04 AM, Michael Niedermayer <michaelni at gmx.at>
wrote:

> On Thu, Oct 30, 2014 at 07:49:10AM +0530, Binathi Bingi wrote:
> > If you check the latest ffserver.conf file on GIT [
> > http://git.videolan.org/?p=ffmpeg.git
> > <
> http://www.google.com/url?q=http%3A%2F%2Fgit.videolan.org%2F%3Fp%3Dffmpeg.git&sa=D&sntz=1&usg=AFQjCNEA5QH18TtMxcLhGx4b04pMUwSgYA
> >],
> > there is NoDaemon option in it. So the patch is written as per latest
> > version. But if desired can include NoDameon option in ffserver.conf and
> > make futher changes.
>
> ffserver must work with any config file it worked with previously
> not only the ffserver.conf file from git
>
> [...]
> --
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> Those who are best at talking, realize last or never when they are wrong.
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
>


More information about the ffmpeg-devel mailing list