合并#199

This commit is contained in:
xiongziliang 2020-01-02 16:29:20 +08:00
parent bca2472fcd
commit d082955510
3 changed files with 3 additions and 1 deletions

View File

@ -79,6 +79,7 @@ API_EXPORT int API_CALL mk_recorder_status(int type, const char *vhost, const ch
* @param vhost
* @param app
* @param stream id
* @param customized_path null则自动生成
* @param wait_for_record false将返回失败
* @param continue_record
* @return 0

View File

@ -59,7 +59,7 @@ API_EXPORT int API_CALL mk_recorder_status(int type, const char *vhost, const ch
API_EXPORT int API_CALL mk_recorder_start(int type, const char *vhost, const char *app, const char *stream,const char *customized_path,int wait_for_record, int continue_record){
assert(vhost && app && stream);
return Recorder::startRecord((Recorder::type)type,vhost,app,stream,customized_path,wait_for_record,continue_record);
return Recorder::startRecord((Recorder::type)type,vhost,app,stream,customized_path ? customized_path : "",wait_for_record,continue_record);
}
API_EXPORT int API_CALL mk_recorder_stop(int type, const char *vhost, const char *app, const char *stream){

View File

@ -69,6 +69,7 @@ public:
* @param vhost
* @param app
* @param stream_id id
* @param customized_path
* @param waitForRecord false将返回失败
* @param continueRecord
* @return 0