mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-12 08:36:43 +02:00
EncoderFactory returns a unique_ptr
This commit is contained in:
parent
8429c82091
commit
7da35880e8
1 changed files with 1 additions and 3 deletions
|
@ -37,7 +37,7 @@ PcmStream::PcmStream(PcmListener* pcmListener, boost::asio::io_context& ioc, con
|
|||
encoder::EncoderFactory encoderFactory;
|
||||
if (uri_.query.find(kUriCodec) == uri_.query.end())
|
||||
throw SnapException("Stream URI must have a codec");
|
||||
encoder_.reset(encoderFactory.createEncoder(uri_.query[kUriCodec]));
|
||||
encoder_ = encoderFactory.createEncoder(uri_.query[kUriCodec]);
|
||||
|
||||
if (uri_.query.find(kUriName) == uri_.query.end())
|
||||
throw SnapException("Stream URI must have a name");
|
||||
|
@ -51,8 +51,6 @@ PcmStream::PcmStream(PcmListener* pcmListener, boost::asio::io_context& ioc, con
|
|||
if (uri_.query.find(kUriChunkMs) != uri_.query.end())
|
||||
chunk_ms_ = cpt::stoul(uri_.query[kUriChunkMs]);
|
||||
|
||||
// meta_.reset(new msg::StreamTags());
|
||||
// meta_->msg["stream"] = name_;
|
||||
setMeta(json());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue