summaryrefslogtreecommitdiff
path: root/src/lib/stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/stream.h')
-rw-r--r--src/lib/stream.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/stream.h b/src/lib/stream.h
index d6c4ca382..760befa02 100644
--- a/src/lib/stream.h
+++ b/src/lib/stream.h
@@ -21,6 +21,7 @@
#define DVDOMATIC_STREAM_H
#include <stdint.h>
+#include <boost/optional.hpp>
extern "C" {
#include <libavutil/audioconvert.h>
}
@@ -55,7 +56,7 @@ protected:
struct AudioStream : public Stream
{
public:
- AudioStream (std::string t);
+ AudioStream (std::string t, boost::optional<int> v);
AudioStream (std::string n, int id, int r, int64_t l)
: Stream (n, id)
@@ -63,6 +64,11 @@ public:
, _channel_layout (l)
{}
+ /** Only used for state file version < 1 compatibility */
+ void set_sample_rate (int r) {
+ _sample_rate = r;
+ }
+
std::string to_string () const;
int channels () const {