mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
Clean up unused variable after clang static analyzer run
This commit is contained in:
@@ -117,7 +117,7 @@ int Mpg123Decoder::decode()
|
|||||||
size += numbytes;
|
size += numbytes;
|
||||||
long rate = 0;
|
long rate = 0;
|
||||||
int encoding = 0;
|
int encoding = 0;
|
||||||
int ret = mpg123_getformat(handle, &rate, &channels, &encoding);
|
mpg123_getformat(handle, &rate, &channels, &encoding);
|
||||||
if (rate == 0)
|
if (rate == 0)
|
||||||
rate = sampleRate;
|
rate = sampleRate;
|
||||||
else
|
else
|
||||||
@@ -126,7 +126,7 @@ int Mpg123Decoder::decode()
|
|||||||
channels = MPG123_STEREO;
|
channels = MPG123_STEREO;
|
||||||
if (encoding == 0)
|
if (encoding == 0)
|
||||||
encoding = MPG123_ENC_SIGNED_16;
|
encoding = MPG123_ENC_SIGNED_16;
|
||||||
ret = mpg123_format(handle, rate, channels, encoding);
|
int ret = mpg123_format(handle, rate, channels, encoding);
|
||||||
if (ret != MPG123_OK)
|
if (ret != MPG123_OK)
|
||||||
throw love::Exception("Could not set output format.");
|
throw love::Exception("Could not set output format.");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user