Skip to content

Commit

Permalink
Filter ssrcs equal to 0 in the SDP
Browse files Browse the repository at this point in the history
  • Loading branch information
jcague committed Sep 20, 2018
1 parent fd71b79 commit e803184
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erizo/src/erizo/WebRtcConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,15 +227,15 @@ std::shared_ptr<SdpInfo> WebRtcConnection::getLocalSdpInfo() {
return;
}
std::vector<uint32_t> video_ssrc_list = std::vector<uint32_t>();
if (media_stream->getVideoSinkSSRC() != kDefaultVideoSinkSSRC) {
if (media_stream->getVideoSinkSSRC() != kDefaultVideoSinkSSRC && media_stream->getVideoSinkSSRC() != 0) {
video_ssrc_list.push_back(media_stream->getVideoSinkSSRC());
}
ELOG_DEBUG("%s message: getting local SDPInfo, stream_id: %s, audio_ssrc: %u",
toLog(), media_stream->getId(), media_stream->getAudioSinkSSRC());
if (!video_ssrc_list.empty()) {
local_sdp_->video_ssrc_map[media_stream->getLabel()] = video_ssrc_list;
}
if (media_stream->getAudioSinkSSRC() != kDefaultAudioSinkSSRC) {
if (media_stream->getAudioSinkSSRC() != kDefaultAudioSinkSSRC && media_stream->getAudioSinkSSRC() != 0) {
local_sdp_->audio_ssrc_map[media_stream->getLabel()] = media_stream->getAudioSinkSSRC();
}
});
Expand Down

0 comments on commit e803184

Please sign in to comment.