From c8099decf329020c81e44ac9c951bbac3fee876f Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 22 Jan 2012 18:18:07 +0000 Subject: [PATCH] Fix infinite loop in ALSA player when playing zero-length audio Updates #1394. Originally committed to SVN as r6339. --- aegisub/src/audio_player_alsa.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aegisub/src/audio_player_alsa.cpp b/aegisub/src/audio_player_alsa.cpp index 0f108e1d8..66a4b0057 100644 --- a/aegisub/src/audio_player_alsa.cpp +++ b/aegisub/src/audio_player_alsa.cpp @@ -201,6 +201,8 @@ do_setup: if (ps.signal_start == false || ps.end_position <= ps.start_position) { + printf("alsa_player: nothing to play, rewaiting\n"); + ps.signal_start = false; continue; }