summaryrefslogtreecommitdiff
path: root/src/lib/decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-10-17 13:47:50 +0100
committerCarl Hetherington <cth@carlh.net>2012-10-17 13:47:50 +0100
commit4dfce74792c3ea55ecf2479568f76d7e54b826e0 (patch)
treed21aa7e386be12027239c4a1f5a25e6f42d04b8b /src/lib/decoder.h
parent91e8c79235abccac95c63952192fd63840727f99 (diff)
Basic support for selection of audio / subtitle streams.
Diffstat (limited to 'src/lib/decoder.h')
-rw-r--r--src/lib/decoder.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/decoder.h b/src/lib/decoder.h
index 8a04ec9f2..312cbbe8e 100644
--- a/src/lib/decoder.h
+++ b/src/lib/decoder.h
@@ -30,6 +30,7 @@
#include <boost/shared_ptr.hpp>
#include <sigc++/sigc++.h>
#include "util.h"
+#include "stream.h"
class Job;
class FilmState;
@@ -79,6 +80,17 @@ public:
int last_video_frame () const {
return _video_frame;
}
+
+ virtual std::vector<Stream> audio_streams () const {
+ return std::vector<Stream> ();
+ }
+
+ virtual std::vector<Stream> subtitle_streams () const {
+ return std::vector<Stream> ();
+ }
+
+ virtual void set_audio_stream (Stream s) {}
+ virtual void set_subtitle_stream (Stream s) {}
/** Emitted when a video frame is ready.
* First parameter is the frame.