mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 03:31:45 +08:00
简化事件参数
This commit is contained in:
@@ -147,11 +147,11 @@ void FFmpegSource::findAsync(int maxWaitMS, const function<void(const MediaSourc
|
||||
return;
|
||||
}
|
||||
|
||||
if(!bRegist ||
|
||||
schema != strongSelf->_media_info._schema ||
|
||||
vhost != strongSelf->_media_info._vhost ||
|
||||
app != strongSelf->_media_info._app ||
|
||||
stream != strongSelf->_media_info._streamid){
|
||||
if (!bRegist ||
|
||||
sender.getSchema() != strongSelf->_media_info._schema ||
|
||||
sender.getVhost() != strongSelf->_media_info._vhost ||
|
||||
sender.getApp() != strongSelf->_media_info._app ||
|
||||
sender.getId() != strongSelf->_media_info._streamid) {
|
||||
//不是自己感兴趣的事件,忽略之
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -341,10 +341,10 @@ void installWebHook(){
|
||||
}
|
||||
ArgsType body;
|
||||
body["regist"] = bRegist;
|
||||
body["schema"] = schema;
|
||||
body["vhost"] = vhost;
|
||||
body["app"] = app;
|
||||
body["stream"] = stream;
|
||||
body["schema"] = sender.getSchema();
|
||||
body["vhost"] = sender.getVhost();
|
||||
body["app"] = sender.getApp();
|
||||
body["stream"] = sender.getId();
|
||||
//执行hook
|
||||
do_http_hook(hook_stream_chaned,body, nullptr);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user