From 196db1a8c8c3ff902bec572e60b0d9611d282d66 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 4 Jul 2019 22:01:44 +0200 Subject: [PATCH] output/oss: remove redundant DoClose() calls from Reopen() --- src/output/plugins/OssOutputPlugin.cxx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/output/plugins/OssOutputPlugin.cxx b/src/output/plugins/OssOutputPlugin.cxx index 21f906969..01b14e0a2 100644 --- a/src/output/plugins/OssOutputPlugin.cxx +++ b/src/output/plugins/OssOutputPlugin.cxx @@ -605,7 +605,6 @@ try { result = oss_try_ioctl(fd, SNDCTL_DSP_CHANNELS, audio_format.channels, msg1); if (result != SUCCESS) { - DoClose(); throw std::runtime_error(msg1); } @@ -613,7 +612,6 @@ try { result = oss_try_ioctl(fd, SNDCTL_DSP_SPEED, audio_format.sample_rate, msg2); if (result != SUCCESS) { - DoClose(); throw std::runtime_error(msg2); } @@ -622,7 +620,6 @@ try { oss_format, msg3); if (result != SUCCESS) { - DoClose(); throw std::runtime_error(msg3); } } catch (...) {