mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-19 14:52:20 +08:00
完成FLV复用器改造
优化代码结构
This commit is contained in:
@@ -194,10 +194,7 @@ inline void RtmpPusher::send_metaData(){
|
||||
if (!src) {
|
||||
throw std::runtime_error("the media source was released");
|
||||
}
|
||||
if (!src->ready()) {
|
||||
throw std::runtime_error("the media source is not ready");
|
||||
}
|
||||
|
||||
|
||||
AMFEncoder enc;
|
||||
enc << "@setDataFrame" << "onMetaData" << src->getMetaData();
|
||||
sendRequest(MSG_DATA, enc.data());
|
||||
|
||||
Reference in New Issue
Block a user