Commit 6648a604 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #7842: initialize member vars

parent 2f6a2f38
...@@ -37,18 +37,20 @@ using std::ptrdiff_t; ...@@ -37,18 +37,20 @@ using std::ptrdiff_t;
namespace sfl { namespace sfl {
AudioCodec::AudioCodec(uint8 payload, const std::string &codecName) : AudioCodec::AudioCodec(uint8 payload, const std::string &codecName) :
codecName_(codecName), clockRate_(8000), channel_(1), bitrate_(0.0), codecName_(codecName), clockRate_(8000), channel_(1), frameSize_(0),
hasDynamicPayload_(false), payload_(payload) bitrate_(0.0), bandwidth_(0.0), hasDynamicPayload_(false),
payload_(payload), payloadFormat_(0)
{ {
init(payload, clockRate_); init(payload, clockRate_);
} }
AudioCodec::AudioCodec(const AudioCodec& codec) : AudioCodec::AudioCodec(const AudioCodec& c) :
codecName_(codec.codecName_), clockRate_(codec.clockRate_), channel_( codecName_(c.codecName_), clockRate_(c.clockRate_), channel_(c.channel_),
codec.channel_), bitrate_(codec.bitrate_), frameSize_(c.frameSize_), bitrate_(c.bitrate_), bandwidth_(c.bandwidth_),
hasDynamicPayload_(false), payload_(codec.payload_) hasDynamicPayload_(c.hasDynamicPayload_), payload_(c.payload_),
payloadFormat_(c.payloadFormat_)
{ {
init(codec.payload_, codec.clockRate_); init(c.payload_, c.clockRate_);
} }
void AudioCodec::init(uint8 payloadType, uint32 clockRate) void AudioCodec::init(uint8 payloadType, uint32 clockRate)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment