diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-11-14 23:39:00 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-11-14 23:39:00 +0000 |
| commit | febb57f618c0f932fca1f9f6400145b5ce1785d1 (patch) | |
| tree | 3c30739e888245345b71ef25db7e8fd41ea2090f /src/lib/stream.h | |
| parent | 65e7ad9b9512816a3313db7e817ed2466d84d644 (diff) | |
Try a bit of backwards compatibility in state file.
Diffstat (limited to 'src/lib/stream.h')
| -rw-r--r-- | src/lib/stream.h | 8 |
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 { |
