Eliminate unnecessary use of a variable

git-svn-id: https://svn.musicpd.org/mpd/trunk@4586 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
J. Alexander Treuman 2006-08-07 17:55:15 +00:00
parent 8e8fd7f1d7
commit 7cf28560e1

View File

@ -323,14 +323,13 @@ static int flushAudioBuffer(void)
int openAudioDevice(AudioFormat * audioFormat) int openAudioDevice(AudioFormat * audioFormat)
{ {
int isCurrentFormat = isCurrentAudioFormat(audioFormat);
int ret = -1; int ret = -1;
int i; int i;
if (!audioOutputArray) if (!audioOutputArray)
return -1; return -1;
if (!audioOpened || !isCurrentFormat) { if (!audioOpened || !isCurrentAudioFormat(audioFormat)) {
flushAudioBuffer(); flushAudioBuffer();
copyAudioFormat(&audio_format, audioFormat); copyAudioFormat(&audio_format, audioFormat);
audioBufferSize = (audio_format.bits >> 3) * audioBufferSize = (audio_format.bits >> 3) *