Fix bug: audio use 100% CPU during pause.

This commit is contained in:
Johns 2012-06-30 00:19:36 +02:00
parent 73d65968ae
commit d486fb2ca1
2 changed files with 6 additions and 1 deletions

View File

@ -2,6 +2,7 @@ User johns
Date:
Release Version 0.5.1
Fix bug: audio use 100% CPU during pause.
Guard audio skip against old PTS values.
Improved audio skip, after channel switch.
Setup add preview of collapsed tree.

View File

@ -3474,6 +3474,10 @@ static void *AudioPlayHandlerThread(void *dummy)
AudioResetNormalizer();
}
}
// FIXME: check AudioPaused ...Thread()
if (AudioPaused) {
break;
}
} while (AudioRing[AudioRingRead].HwSampleRate);
}
return dummy;