no track throw error avoid addstreamproxy already exist

This commit is contained in:
xiongguangjie 2024-03-16 18:56:35 +08:00 committed by 夏楚
parent 8e16a698b6
commit af155ef87a

View File

@ -187,6 +187,8 @@ void MediaSink::emitAllTrackReady() {
pr.second.for_each([&](const Frame::Ptr &frame) { MediaSink::inputFrame(frame); }); pr.second.for_each([&](const Frame::Ptr &frame) { MediaSink::inputFrame(frame); });
} }
_frame_unread.clear(); _frame_unread.clear();
} else {
throw toolkit::SockException(toolkit::Err_shutdown, "no vaild track data");
} }
} }