mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-08-15 09:27:27 +00:00
soundserver: fix double freeing.
This commit is contained in:
@@ -117,6 +117,8 @@ void SoundServer::shutdown()
|
|||||||
case SND_STREAM_OPENED:
|
case SND_STREAM_OPENED:
|
||||||
close_out_stream();
|
close_out_stream();
|
||||||
/* fall through */
|
/* fall through */
|
||||||
|
case SND_STREAM_CLOSED:
|
||||||
|
/* fall through */
|
||||||
case SND_SERVER_UP:
|
case SND_SERVER_UP:
|
||||||
/* fall through */
|
/* fall through */
|
||||||
case SND_API_READY:
|
case SND_API_READY:
|
||||||
@@ -219,5 +221,6 @@ void SoundServer::close_out_stream()
|
|||||||
{
|
{
|
||||||
cubeb_stream_stop(this->out_stream);
|
cubeb_stream_stop(this->out_stream);
|
||||||
cubeb_stream_destroy(this->out_stream);
|
cubeb_stream_destroy(this->out_stream);
|
||||||
|
this->status = SND_STREAM_CLOSED;
|
||||||
LOG_F(9, "Sound output stream closed.");
|
LOG_F(9, "Sound output stream closed.");
|
||||||
}
|
}
|
||||||
|
@@ -41,7 +41,8 @@ enum {
|
|||||||
SND_SERVER_DOWN = 0,
|
SND_SERVER_DOWN = 0,
|
||||||
SND_API_READY,
|
SND_API_READY,
|
||||||
SND_SERVER_UP,
|
SND_SERVER_UP,
|
||||||
SND_STREAM_OPENED
|
SND_STREAM_OPENED,
|
||||||
|
SND_STREAM_CLOSED
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user