调整 RtspSession::_push_src类型,统一为 RtspMediaSource::Ptr _push_src;

This commit is contained in:
Johnny
2021-10-15 18:23:25 +08:00
parent efa839c60b
commit 722097be05
3 changed files with 8 additions and 7 deletions

View File

@@ -187,9 +187,9 @@ bool MultiMediaSourceMuxer::setupRecord(MediaSource &sender, Recorder::type type
bool MultiMediaSourceMuxer::isRecording(MediaSource &sender, Recorder::type type) {
switch (type){
case Recorder::type_hls :
return _hls ? true : false;
return !!_hls;
case Recorder::type_mp4 :
return _mp4 ? true : false;
return !!_mp4;
default:
return false;
}