output/sndio: remove unnecessary initialization

This commit is contained in:
Max Kellermann 2016-06-22 11:01:37 +02:00
parent 8aa61e230c
commit 1207fd1f16

View File

@ -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,14 +164,12 @@ 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;
} }