pass fifo by const ref

This commit is contained in:
Isaac Connor 2021-04-20 17:18:00 -04:00
parent 012827e800
commit 9a54956163
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ ZoneMinderFifoAudioSource::ZoneMinderFifoAudioSource(
std::shared_ptr<xop::RtspServer>& rtspServer, std::shared_ptr<xop::RtspServer>& rtspServer,
xop::MediaSessionId sessionId, xop::MediaSessionId sessionId,
xop::MediaChannelId channelId, xop::MediaChannelId channelId,
std::string fifo const std::string &fifo
) )
: :
ZoneMinderFifoSource(rtspServer, sessionId, channelId, fifo), ZoneMinderFifoSource(rtspServer, sessionId, channelId, fifo),

View File

@ -26,7 +26,7 @@ class ZoneMinderFifoAudioSource : public ZoneMinderFifoSource {
std::shared_ptr<xop::RtspServer>& rtspServer, std::shared_ptr<xop::RtspServer>& rtspServer,
xop::MediaSessionId sessionId, xop::MediaSessionId sessionId,
xop::MediaChannelId channelId, xop::MediaChannelId channelId,
std::string fifo const std::string &fifo
); );
virtual ~ZoneMinderFifoAudioSource() {} virtual ~ZoneMinderFifoAudioSource() {}
@ -43,7 +43,7 @@ class ZoneMinderFifoAudioSource : public ZoneMinderFifoSource {
int getChannels() const { return channels; }; int getChannels() const { return channels; };
protected: protected:
void PushFrame(const uint8_t *data, size_t size, int64_t pts); void PushFrame(const uint8_t *data, size_t size, int64_t pts) override;
protected: protected:
std::string config; std::string config;