From 503647557aa43e8be23133f8619c6c66bfe2f470 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 27 Aug 2019 08:40:01 +0200 Subject: Make InputBase::setBitrate fail with invalid_argument instead of return value --- src/input/inputs.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/input/inputs.h') diff --git a/src/input/inputs.h b/src/input/inputs.h index b823998..9c6c3f5 100644 --- a/src/input/inputs.h +++ b/src/input/inputs.h @@ -42,6 +42,8 @@ class InputBase { virtual void open(const std::string& name) = 0; virtual int readFrame(uint8_t* buffer, size_t size) = 0; + + /* Returns the effectively used bitrate, or throws invalid_argument on invalid bitrate */ virtual int setBitrate(int bitrate) = 0; virtual int close() = 0; -- cgit v1.2.3