From af155ef87a4c7fb77f6f23fa9880611dc22b30f8 Mon Sep 17 00:00:00 2001 From: xiongguangjie Date: Sat, 16 Mar 2024 18:56:35 +0800 Subject: [PATCH] no track throw error avoid addstreamproxy already exist --- src/Common/MediaSink.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Common/MediaSink.cpp b/src/Common/MediaSink.cpp index 41b4f415..f888b297 100644 --- a/src/Common/MediaSink.cpp +++ b/src/Common/MediaSink.cpp @@ -187,6 +187,8 @@ void MediaSink::emitAllTrackReady() { pr.second.for_each([&](const Frame::Ptr &frame) { MediaSink::inputFrame(frame); }); } _frame_unread.clear(); + } else { + throw toolkit::SockException(toolkit::Err_shutdown, "no vaild track data"); } }