Fix typo preventing audio sync fixes when audio follows video.
authorCarl Hetherington <cth@carlh.net>
Tue, 7 May 2013 08:48:47 +0000 (09:48 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 7 May 2013 08:48:47 +0000 (09:48 +0100)
src/lib/matcher.cc

index 9924c003ae5b81298ef27653e5ba015d7d312307..2723f2a2d360c71807795e1e83b33ba840e6a131 100644 (file)
@@ -110,7 +110,7 @@ Matcher::process_audio (boost::shared_ptr<const AudioBuffers> b, double t)
        if (!_had_first_video) {
                /* No video yet; we must postpone these data until we have some */
                _pending_audio.push_back (AudioRecord (b, t));
-       } else if (this_is_first_audio && !_had_first_video) {
+       } else if (this_is_first_audio && _had_first_video) {
                /* First audio since we got video */
                _pending_audio.push_back (AudioRecord (b, t));
                fix_start (_first_input.get ());