File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ bool FifoFileClient::matchMedia(MediaTrackPtr media)
48
48
49
49
void FifoFileClient::addConnection (const std::string& webrtcConnectionId, MediaTrackPtr media)
50
50
{
51
+ if (mediaTracks_.find (webrtcConnectionId) != mediaTracks_.end ()) {
52
+ NPLOGI << " addConnection called with already added connection ID" ;
53
+ return ;
54
+ }
51
55
auto sdp = media->getSdp ();
52
56
53
57
rtc::Description::Media desc (sdp);
Original file line number Diff line number Diff line change @@ -59,7 +59,10 @@ bool RtpClient::matchMedia(MediaTrackPtr media)
59
59
60
60
void RtpClient::addConnection (const std::string& webrtcConnectionId, MediaTrackPtr media)
61
61
{
62
-
62
+ if (mediaTracks_.find (webrtcConnectionId) != mediaTracks_.end ()) {
63
+ NPLOGI << " addConnection called with already added connection ID" ;
64
+ return ;
65
+ }
63
66
auto sdp = media->getSdp ();
64
67
rtc::Description::Media desc (sdp);
65
68
auto pts = desc.payloadTypes ();
You can’t perform that action at this time.
0 commit comments