pass fifo by const ref
This commit is contained in:
parent
012827e800
commit
9a54956163
|
@ -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),
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue