output/Shout: remove unnecessary nullptr check
This commit is contained in:
@@ -299,7 +299,6 @@ write_page(ShoutOutput *sd)
|
|||||||
void
|
void
|
||||||
ShoutOutput::Close()
|
ShoutOutput::Close()
|
||||||
{
|
{
|
||||||
if (encoder != nullptr) {
|
|
||||||
try {
|
try {
|
||||||
encoder->End();
|
encoder->End();
|
||||||
write_page(this);
|
write_page(this);
|
||||||
@@ -308,7 +307,6 @@ ShoutOutput::Close()
|
|||||||
}
|
}
|
||||||
|
|
||||||
delete encoder;
|
delete encoder;
|
||||||
}
|
|
||||||
|
|
||||||
if (shout_get_connected(shout_conn) != SHOUTERR_UNCONNECTED &&
|
if (shout_get_connected(shout_conn) != SHOUTERR_UNCONNECTED &&
|
||||||
shout_close(shout_conn) != SHOUTERR_SUCCESS) {
|
shout_close(shout_conn) != SHOUTERR_SUCCESS) {
|
||||||
|
Reference in New Issue
Block a user