| Index: webrtc/media/base/mediachannel.h
|
| diff --git a/webrtc/media/base/mediachannel.h b/webrtc/media/base/mediachannel.h
|
| index 3f6c8dda63943fa92aebcd948a7ce4d240aab4fd..f7efa4a975433466015a6e6011a060a6f3c97fb9 100644
|
| --- a/webrtc/media/base/mediachannel.h
|
| +++ b/webrtc/media/base/mediachannel.h
|
| @@ -858,7 +858,7 @@ struct RtpParameters {
|
| RtcpParameters rtcp;
|
| };
|
|
|
| -template <class Codec, class Options>
|
| +template <class Codec>
|
| struct RtpSendParameters : RtpParameters<Codec> {
|
| std::string ToString() const override {
|
| std::ostringstream ost;
|
| @@ -866,16 +866,26 @@ struct RtpSendParameters : RtpParameters<Codec> {
|
| ost << "codecs: " << VectorToString(this->codecs) << ", ";
|
| ost << "extensions: " << VectorToString(this->extensions) << ", ";
|
| ost << "max_bandwidth_bps: " << max_bandwidth_bps << ", ";
|
| - ost << "options: " << options.ToString();
|
| ost << "}";
|
| return ost.str();
|
| }
|
|
|
| int max_bandwidth_bps = -1;
|
| - Options options;
|
| };
|
|
|
| -struct AudioSendParameters : RtpSendParameters<AudioCodec, AudioOptions> {
|
| +struct AudioSendParameters : RtpSendParameters<AudioCodec> {
|
| + std::string ToString() const override {
|
| + std::ostringstream ost;
|
| + ost << "{";
|
| + ost << "codecs: " << VectorToString(this->codecs) << ", ";
|
| + ost << "extensions: " << VectorToString(this->extensions) << ", ";
|
| + ost << "max_bandwidth_bps: " << max_bandwidth_bps << ", ";
|
| + ost << "options: " << options.ToString();
|
| + ost << "}";
|
| + return ost.str();
|
| + }
|
| +
|
| + AudioOptions options;
|
| };
|
|
|
| struct AudioRecvParameters : RtpParameters<AudioCodec> {
|
| @@ -945,7 +955,7 @@ class VoiceMediaChannel : public MediaChannel {
|
| rtc::scoped_ptr<webrtc::AudioSinkInterface> sink) = 0;
|
| };
|
|
|
| -struct VideoSendParameters : RtpSendParameters<VideoCodec, VideoOptions> {
|
| +struct VideoSendParameters : RtpSendParameters<VideoCodec> {
|
| };
|
|
|
| struct VideoRecvParameters : RtpParameters<VideoCodec> {
|
| @@ -1059,13 +1069,7 @@ struct SendDataParams {
|
|
|
| enum SendDataResult { SDR_SUCCESS, SDR_ERROR, SDR_BLOCK };
|
|
|
| -struct DataOptions {
|
| - std::string ToString() const {
|
| - return "{}";
|
| - }
|
| -};
|
| -
|
| -struct DataSendParameters : RtpSendParameters<DataCodec, DataOptions> {
|
| +struct DataSendParameters : RtpSendParameters<DataCodec> {
|
| std::string ToString() const {
|
| std::ostringstream ost;
|
| // Options and extensions aren't used.
|
|
|