input/qobuz: dispose the QobuzTrackRequest
This commit is contained in:
@ -103,6 +103,7 @@ void
|
|||||||
QobuzInputStream::OnQobuzTrackSuccess(std::string url) noexcept
|
QobuzInputStream::OnQobuzTrackSuccess(std::string url) noexcept
|
||||||
{
|
{
|
||||||
const std::lock_guard<Mutex> protect(mutex);
|
const std::lock_guard<Mutex> protect(mutex);
|
||||||
|
track_request.reset();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
SetInput(OpenCurlInputStream(url.c_str(), {},
|
SetInput(OpenCurlInputStream(url.c_str(), {},
|
||||||
@ -116,6 +117,7 @@ void
|
|||||||
QobuzInputStream::OnQobuzTrackError(std::exception_ptr e) noexcept
|
QobuzInputStream::OnQobuzTrackError(std::exception_ptr e) noexcept
|
||||||
{
|
{
|
||||||
const std::lock_guard<Mutex> protect(mutex);
|
const std::lock_guard<Mutex> protect(mutex);
|
||||||
|
track_request.reset();
|
||||||
|
|
||||||
Failed(e);
|
Failed(e);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user