Remove public sync_label from StreamParams
This change replaces the use of sync_label from StreamParams with the new stream_labels() and set_stream_labels() getter and setter. Bug: webrtc:7932 Change-Id: Ibd6d38f7d4efed37ac07963e6fbe377c93a28fd6 Reviewed-on: https://webrtc-review.googlesource.com/58540 Commit-Queue: Steve Anton <steveanton@webrtc.org> Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22257}
This commit is contained in:
@ -495,7 +495,7 @@ bool ContainsTrack(const std::vector<cricket::StreamParams>& streams,
|
||||
const std::string& stream_label,
|
||||
const std::string& track_id) {
|
||||
for (const cricket::StreamParams& params : streams) {
|
||||
if (params.sync_label == stream_label && params.id == track_id) {
|
||||
if (params.first_stream_label() == stream_label && params.id == track_id) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -1903,7 +1903,7 @@ TEST_F(PeerConnectionInterfaceTestPlanB, CreateSenderWithStream) {
|
||||
cricket::GetFirstVideoContentDescription(offer->description());
|
||||
ASSERT_TRUE(video_desc != nullptr);
|
||||
ASSERT_EQ(1u, video_desc->streams().size());
|
||||
EXPECT_EQ(kStreamLabel1, video_desc->streams()[0].sync_label);
|
||||
EXPECT_EQ(kStreamLabel1, video_desc->streams()[0].first_stream_label());
|
||||
}
|
||||
|
||||
// Test that we can specify a certain track that we want statistics about.
|
||||
|
Reference in New Issue
Block a user