Skip to content

Commit

Permalink
RTC: check audio track exist when negotiate (#2729)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozhihong authored Nov 13, 2021
1 parent 5c09dec commit 469bd8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions trunk/src/app/srs_app_rtc_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,9 @@ std::vector<SrsRtcTrackDescription*> SrsRtcSource::get_track_desc(std::string ty
}

if (type == "audio") {
if (! stream_desc_->audio_track_desc_) {
return track_descs;
}
if (stream_desc_->audio_track_desc_->media_->name_ == media_name) {
track_descs.push_back(stream_desc_->audio_track_desc_);
}
Expand Down

0 comments on commit 469bd8c

Please sign in to comment.