From 23ffbe78f3b386769b2a2e3fc301df318988ece1 Mon Sep 17 00:00:00 2001 From: Seth Hampson Date: Fri, 30 Mar 2018 16:59:31 -0700 Subject: [PATCH] Adding constructor to StreamSelector. This allows us to update downstreams to no longer use the constructor that includes groupid. This is part of a small cleanup of StreamParams. Bug: webrtc:9042 Change-Id: I0343fd9213157614023e5990f6e776b4f56de144 Reviewed-on: https://webrtc-review.googlesource.com/63421 Commit-Queue: Seth Hampson Reviewed-by: Taylor Brandstetter Cr-Commit-Position: refs/heads/master@{#22695} --- media/base/streamparams.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/media/base/streamparams.h b/media/base/streamparams.h index 016c27ad0e..f2bc95865f 100644 --- a/media/base/streamparams.h +++ b/media/base/streamparams.h @@ -188,6 +188,9 @@ struct StreamSelector { streamid(streamid) { } + explicit StreamSelector(const std::string& streamid) + : ssrc(0), streamid(streamid) {} + bool Matches(const StreamParams& stream) const { if (ssrc == 0) { return stream.groupid == groupid && stream.id == streamid;