summaryrefslogtreecommitdiff
path: root/src/lib/stream.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-11-14 23:39:00 +0000
committerCarl Hetherington <cth@carlh.net>2012-11-14 23:39:00 +0000
commitfebb57f618c0f932fca1f9f6400145b5ce1785d1 (patch)
tree3c30739e888245345b71ef25db7e8fd41ea2090f /src/lib/stream.h
parent65e7ad9b9512816a3313db7e817ed2466d84d644 (diff)
Try a bit of backwards compatibility in state file.
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 {