From 039af7243caf56522854e603e519cb16604ee3bd Mon Sep 17 00:00:00 2001 From: winlin Date: Mon, 24 Aug 2015 22:26:19 +0800 Subject: [PATCH] for #367, refine the comments for process. --- trunk/src/app/srs_app_process.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/trunk/src/app/srs_app_process.hpp b/trunk/src/app/srs_app_process.hpp index 1b668f20b..aa282fd18 100644 --- a/trunk/src/app/srs_app_process.hpp +++ b/trunk/src/app/srs_app_process.hpp @@ -35,6 +35,11 @@ /** * to start and stop a process, cycle to restart the process when terminated. * the usage: + * // the binary is the process to fork. + * binary = "./objs/ffmpeg/bin/ffmpeg"; + * // where argv is a array contains each params. + * argv = ["-i", "in.flv", "1", ">", "/dev/null", "2", ">", "/dev/null"]; + * * process = new SrsProcess(); * if ((ret = process->initialize(binary, argv)) != ERROR_SUCCESS) { return ret; } * if ((ret = process->start()) != ERROR_SUCCESS) { return ret; }