[FFmpeg-devel] [PATCH] ffserver: add comment about how Launch path program is created
Clément Bœsch
u at pkh.me
Thu Nov 28 22:31:05 CET 2013
On Thu, Nov 28, 2013 at 06:34:06PM +0100, Stefano Sabatini wrote:
> ---
> ffserver.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/ffserver.c b/ffserver.c
> index 5c6db9a..d34c8a8 100644
> --- a/ffserver.c
> +++ b/ffserver.c
> @@ -509,8 +509,9 @@ static void start_children(FFStream *feed)
> char *slash;
> int i;
>
> + /* replace "ffserver" with "ffmpeg" in the path of current program,
> + * ignore user provided path */
> av_strlcpy(pathname, my_program_name, sizeof(pathname));
> -
> slash = strrchr(pathname, '/');
> if (!slash)
> slash = pathname;
While it's relatively easy to figure out what that code does, the "why" is
not so obvious. You might want to explain this in a sentence or two.
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131128/01ce54b0/attachment.asc>
More information about the ffmpeg-devel
mailing list