From febb57f618c0f932fca1f9f6400145b5ce1785d1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 14 Nov 2012 23:39:00 +0000 Subject: Try a bit of backwards compatibility in state file. --- src/lib/stream.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/lib/stream.h') 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 +#include extern "C" { #include } @@ -55,7 +56,7 @@ protected: struct AudioStream : public Stream { public: - AudioStream (std::string t); + AudioStream (std::string t, boost::optional 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 { -- cgit v1.2.3