From 3994ec6aeb7b1dd07aeac2cd6086f6d0a68352de Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 6 Mar 2013 23:37:59 +0000 Subject: Fix infinite loop. --- src/lib/matcher.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/matcher.cc b/src/lib/matcher.cc index b2bef0269..83a39b6ee 100644 --- a/src/lib/matcher.cc +++ b/src/lib/matcher.cc @@ -96,7 +96,7 @@ Matcher::process_audio (boost::shared_ptr b, double t) if (_video_frames == 0) { /* No video yet; we must postpone these data until we have some */ _pending_audio.push_back (AudioRecord (b, t)); - } else if (_video_frames > 0 && _audio_frames == 0) { + } else if (_video_frames > 0 && _audio_frames == 0 && _pending_audio.empty()) { /* First audio since we got video */ _pending_audio.push_back (AudioRecord (b, t)); fix_start (); -- cgit v1.2.3