diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2020-03-31 10:03:58 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2020-03-31 10:03:58 +0200 |
commit | a1eb6cf861d3c1cbd4e6c016be3cbd2a1e3d797d (patch) | |
tree | 2b4790eec8f47fb086e645717f07c53b30ace919 /src/StatsPublish.cpp | |
parent | 2f84a54ec1d10b10293c7b1f4ab9fee31f3c6327 (diff) | |
parent | c6a73c219dbfdfe639372d9922f4eb512f06fa2f (diff) | |
download | ODR-AudioEnc-a1eb6cf861d3c1cbd4e6c016be3cbd2a1e3d797d.tar.gz ODR-AudioEnc-a1eb6cf861d3c1cbd4e6c016be3cbd2a1e3d797d.tar.bz2 ODR-AudioEnc-a1eb6cf861d3c1cbd4e6c016be3cbd2a1e3d797d.zip |
Merge GStreamer into next
Diffstat (limited to 'src/StatsPublish.cpp')
-rw-r--r-- | src/StatsPublish.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/StatsPublish.cpp b/src/StatsPublish.cpp index 0bad833..cdb32cb 100644 --- a/src/StatsPublish.cpp +++ b/src/StatsPublish.cpp @@ -51,6 +51,13 @@ StatsPublisher::StatsPublisher(const string& socket_path) : } } +StatsPublisher::~StatsPublisher() +{ + if (m_sock != -1) { + close(m_sock); + } +} + void StatsPublisher::update_audio_levels(int16_t audiolevel_left, int16_t audiolevel_right) { m_audio_left = audiolevel_left; |