diff --git a/webrtc/common_types.h b/webrtc/common_types.h index 2988bf9f41..fd5d820892 100644 --- a/webrtc/common_types.h +++ b/webrtc/common_types.h @@ -14,6 +14,7 @@ #include #include +#include #include #include @@ -328,6 +329,16 @@ struct CodecInst { } bool operator!=(const CodecInst& other) const { return !(*this == other); } + + friend std::ostream& operator<<(std::ostream& os, const CodecInst& ci) { + os << "{pltype: " << ci.pltype; + os << ", plname: " << ci.plname; + os << ", plfreq: " << ci.plfreq; + os << ", pacsize: " << ci.pacsize; + os << ", channels: " << ci.channels; + os << ", rate: " << ci.rate << "}"; + return os; + } }; // RTP