summaryrefslogtreecommitdiff
path: root/src/lib/sndfile_decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-05-13 10:15:26 +0100
committerCarl Hetherington <cth@carlh.net>2015-05-13 10:15:26 +0100
commit9922c1f2eaea674ba2ff6cce5f5853655fd8ad7a (patch)
tree9427c2cb655f8788c31bb5410d70451d11ae3665 /src/lib/sndfile_decoder.h
parent83e5567530d0be24490abdda46d196e4279c5030 (diff)
Don't bother decoding video frames when we're seeking around trying to find subtitles.
Diffstat (limited to 'src/lib/sndfile_decoder.h')
-rw-r--r--src/lib/sndfile_decoder.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/sndfile_decoder.h b/src/lib/sndfile_decoder.h
index 5ebe1da7b..68c8633a0 100644
--- a/src/lib/sndfile_decoder.h
+++ b/src/lib/sndfile_decoder.h
@@ -30,14 +30,13 @@ public:
SndfileDecoder (boost::shared_ptr<const SndfileContent> c);
~SndfileDecoder ();
- void seek (ContentTime, bool);
-
int audio_channels () const;
ContentTime audio_length () const;
int audio_frame_rate () const;
private:
- bool pass ();
+ bool pass (PassReason);
+ void seek (ContentTime, bool);
boost::shared_ptr<const SndfileContent> _sndfile_content;
SNDFILE* _sndfile;