mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 11:17:09 +08:00
精简代码
This commit is contained in:
parent
aeb2f910c1
commit
b7049b1407
@ -106,7 +106,6 @@ void RtmpDemuxer::makeVideoTrack(const AMFValue &videoCodec) {
|
|||||||
//设置rtmp解码器代理,生成的frame写入该Track
|
//设置rtmp解码器代理,生成的frame写入该Track
|
||||||
_videoRtmpDecoder->addDelegate(_videoTrack);
|
_videoRtmpDecoder->addDelegate(_videoTrack);
|
||||||
onAddTrack(_videoTrack);
|
onAddTrack(_videoTrack);
|
||||||
_tryedGetVideoTrack = true;
|
|
||||||
} else {
|
} else {
|
||||||
//找不到相应的rtmp解码器,该track无效
|
//找不到相应的rtmp解码器,该track无效
|
||||||
_videoTrack.reset();
|
_videoTrack.reset();
|
||||||
@ -124,7 +123,6 @@ void RtmpDemuxer::makeAudioTrack(const AMFValue &audioCodec,int sample_rate, int
|
|||||||
//设置rtmp解码器代理,生成的frame写入该Track
|
//设置rtmp解码器代理,生成的frame写入该Track
|
||||||
_audioRtmpDecoder->addDelegate(_audioTrack);
|
_audioRtmpDecoder->addDelegate(_audioTrack);
|
||||||
onAddTrack(_audioTrack);
|
onAddTrack(_audioTrack);
|
||||||
_tryedGetAudioTrack = true;
|
|
||||||
} else {
|
} else {
|
||||||
//找不到相应的rtmp解码器,该track无效
|
//找不到相应的rtmp解码器,该track无效
|
||||||
_audioTrack.reset();
|
_audioTrack.reset();
|
||||||
|
Loading…
Reference in New Issue
Block a user