summaryrefslogtreecommitdiff
path: root/src/lib/matcher.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-05-07 10:18:33 +0100
committerCarl Hetherington <cth@carlh.net>2013-05-07 10:18:33 +0100
commit4ff5c21a9c3c2ea8ab3a253ef5658e3ee91e0bea (patch)
treecacc56e60d0c565ba0a2141964a398ee11d82b3b /src/lib/matcher.h
parentaf671aa256ae0d2fa38a6740cea7fc0f6b45b5b8 (diff)
Fix another bit of incorrect logic (this_is_first_audio was inverted). Also try to add _audio_starts_with_video mode to Matcher.
Diffstat (limited to 'src/lib/matcher.h')
-rw-r--r--src/lib/matcher.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/matcher.h b/src/lib/matcher.h
index 41aa373a4..aab6adad9 100644
--- a/src/lib/matcher.h
+++ b/src/lib/matcher.h
@@ -25,6 +25,9 @@ class Matcher : public Processor, public TimedAudioSink, public TimedVideoSink,
{
public:
Matcher (boost::shared_ptr<Log> log, int sample_rate, float frames_per_second);
+
+ void set_audio_starts_with_video (bool);
+
void process_video (boost::shared_ptr<const Image> i, bool, boost::shared_ptr<Subtitle> s, double);
void process_audio (boost::shared_ptr<const AudioBuffers>, double);
void process_end ();
@@ -55,9 +58,12 @@ private:
std::list<AudioRecord> _pending_audio;
boost::optional<double> _first_input;
+ boost::optional<double> _first_video;
boost::shared_ptr<const Image> _last_image;
boost::shared_ptr<Subtitle> _last_subtitle;
bool _had_first_video;
bool _had_first_audio;
+
+ bool _audio_starts_with_video;
};