提高rtsp客户端健壮性

This commit is contained in:
xiongziliang
2020-07-08 22:29:08 +08:00
parent be65ec5f1d
commit d4908c3162
2 changed files with 5 additions and 12 deletions

View File

@@ -347,7 +347,7 @@ inline int RtspPusher::getTrackIndexByTrackType(TrackType type) {
if(_aTrackInfo.size() == 1){
return 0;
}
return -1;
throw SockException(Err_shutdown, StrPrinter << "no such track with type:" << (int) type);
}
void RtspPusher::sendRecord() {