diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-08-27 08:30:20 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-08-27 08:30:20 +0200 |
commit | 70e72e84212f5b6b15f2e1a2b2d95d1d67abac7f (patch) | |
tree | a21fb353a0b5bcdd89ae249feaf82c4715249cc3 /src/input/Udp.cpp | |
parent | 22df1554f5b6dabfd9c8bb18a0107c36a3cf2aac (diff) | |
download | dabmux-70e72e84212f5b6b15f2e1a2b2d95d1d67abac7f.tar.gz dabmux-70e72e84212f5b6b15f2e1a2b2d95d1d67abac7f.tar.bz2 dabmux-70e72e84212f5b6b15f2e1a2b2d95d1d67abac7f.zip |
Make InputBase::open() return void
Diffstat (limited to 'src/input/Udp.cpp')
-rw-r--r-- | src/input/Udp.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/input/Udp.cpp b/src/input/Udp.cpp index 5d4f964..b527530 100644 --- a/src/input/Udp.cpp +++ b/src/input/Udp.cpp @@ -38,7 +38,7 @@ using namespace std; namespace Inputs { -int Udp::open(const std::string& name) +void Udp::open(const std::string& name) { // Skip the udp:// part if it is present const string endpoint = (name.substr(0, 6) == "udp://") ? @@ -57,8 +57,6 @@ int Udp::open(const std::string& name) m_name = name; openUdpSocket(endpoint); - - return 0; } void Udp::openUdpSocket(const std::string& endpoint) @@ -149,7 +147,7 @@ static uint16_t unpack2(const uint8_t *buf) return (((uint16_t)buf[0]) << 8) | buf[1]; } -int Sti_d_Rtp::open(const std::string& name) +void Sti_d_Rtp::open(const std::string& name) { // Skip the rtp:// part if it is present const string endpoint = (name.substr(0, 10) == "rtp://") ? @@ -168,8 +166,6 @@ int Sti_d_Rtp::open(const std::string& name) m_name = name; openUdpSocket(endpoint); - - return 0; } void Sti_d_Rtp::receive_packet() |