aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/inputs.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-08-27 08:40:01 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-08-27 08:40:01 +0200
commit503647557aa43e8be23133f8619c6c66bfe2f470 (patch)
tree6d333044845083902a43ee422e9165a4ac75643d /src/input/inputs.h
parent70e72e84212f5b6b15f2e1a2b2d95d1d67abac7f (diff)
downloaddabmux-503647557aa43e8be23133f8619c6c66bfe2f470.tar.gz
dabmux-503647557aa43e8be23133f8619c6c66bfe2f470.tar.bz2
dabmux-503647557aa43e8be23133f8619c6c66bfe2f470.zip
Make InputBase::setBitrate fail with invalid_argument instead of return value
Diffstat (limited to 'src/input/inputs.h')
-rw-r--r--src/input/inputs.h2
1 files changed, 2 insertions, 0 deletions
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;