diff --git a/pc/webrtc_sdp.cc b/pc/webrtc_sdp.cc index b524a75654..984a1e14a1 100644 --- a/pc/webrtc_sdp.cc +++ b/pc/webrtc_sdp.cc @@ -666,8 +666,9 @@ void CreateTrackWithNoSsrcs(const std::vector& msid_stream_ids, const std::vector& rids, StreamParamsVec* tracks) { StreamParams track; - if (msid_track_id.empty() || msid_stream_ids.empty()) { + if (msid_track_id.empty() && rids.empty()) { // We only create an unsignaled track if a=msid lines were signaled. + RTC_LOG(LS_INFO) << "MSID not signaled, skipping creation of StreamParams"; return; } track.set_stream_ids(msid_stream_ids);