mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 11:41:44 +08:00
完成FLV复用器改造
优化代码结构
This commit is contained in:
@@ -207,11 +207,9 @@ inline bool HttpSession::checkLiveFlvStream(){
|
||||
m_mediaInfo.m_streamid.erase(m_mediaInfo.m_streamid.size() - 4);//去除.flv后缀
|
||||
|
||||
auto mediaSrc = dynamic_pointer_cast<RtmpMediaSource>(MediaSource::find(RTMP_SCHEMA,m_mediaInfo.m_vhost,m_mediaInfo.m_app,m_mediaInfo.m_streamid));
|
||||
if(!mediaSrc || !mediaSrc->ready()){
|
||||
if(!mediaSrc){
|
||||
//该rtmp源不存在
|
||||
sendNotFound(true);
|
||||
shutdown();
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
auto onRes = [this,mediaSrc](const string &err){
|
||||
|
||||
Reference in New Issue
Block a user