Commit 196db1a8 authored by Max Kellermann's avatar Max Kellermann

output/oss: remove redundant DoClose() calls from Reopen()

parent d66ef7ea
...@@ -605,7 +605,6 @@ try { ...@@ -605,7 +605,6 @@ try {
result = oss_try_ioctl(fd, SNDCTL_DSP_CHANNELS, result = oss_try_ioctl(fd, SNDCTL_DSP_CHANNELS,
audio_format.channels, msg1); audio_format.channels, msg1);
if (result != SUCCESS) { if (result != SUCCESS) {
DoClose();
throw std::runtime_error(msg1); throw std::runtime_error(msg1);
} }
...@@ -613,7 +612,6 @@ try { ...@@ -613,7 +612,6 @@ try {
result = oss_try_ioctl(fd, SNDCTL_DSP_SPEED, result = oss_try_ioctl(fd, SNDCTL_DSP_SPEED,
audio_format.sample_rate, msg2); audio_format.sample_rate, msg2);
if (result != SUCCESS) { if (result != SUCCESS) {
DoClose();
throw std::runtime_error(msg2); throw std::runtime_error(msg2);
} }
...@@ -622,7 +620,6 @@ try { ...@@ -622,7 +620,6 @@ try {
oss_format, oss_format,
msg3); msg3);
if (result != SUCCESS) { if (result != SUCCESS) {
DoClose();
throw std::runtime_error(msg3); throw std::runtime_error(msg3);
} }
} catch (...) { } catch (...) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment