Skip to content

Commit

Permalink
for #367, refine the comments for process.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Aug 24, 2015
1 parent 6fe88d0 commit 039af72
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions trunk/src/app/srs_app_process.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down

0 comments on commit 039af72

Please sign in to comment.