Commit 1207fd1f authored by Max Kellermann's avatar Max Kellermann

output/sndio: remove unnecessary initialization

parent 8aa61e23
...@@ -46,8 +46,7 @@ class SndioOutput { ...@@ -46,8 +46,7 @@ class SndioOutput {
public: public:
SndioOutput() SndioOutput()
:base(sndio_output_plugin), :base(sndio_output_plugin) {}
device(nullptr), sio_hdl(nullptr) {}
~SndioOutput() {} ~SndioOutput() {}
bool Configure(const ConfigBlock &block, Error &error); bool Configure(const ConfigBlock &block, Error &error);
...@@ -165,15 +164,13 @@ SndioOutput::Open(AudioFormat &audio_format, gcc_unused Error &error) ...@@ -165,15 +164,13 @@ SndioOutput::Open(AudioFormat &audio_format, gcc_unused Error &error)
return true; return true;
err: err:
sio_close(sio_hdl); sio_close(sio_hdl);
sio_hdl = nullptr;
return false; return false;
} }
void void
SndioOutput::Close() SndioOutput::Close()
{ {
if (sio_hdl) sio_close(sio_hdl);
sio_close(sio_hdl);
delete timer; delete timer;
} }
......
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