Destroy stream process when stopping audio stream to allow restarting in the case of stuck or errored libvlc (#2124)

master
Rye Mutt 2024-07-27 11:15:00 -04:00 committed by GitHub
parent fceec45641
commit c98498e6ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,8 @@ void LLStreamingAudio_MediaPlugins::start(const std::string& url)
LL_INFOS() << "setting stream to NULL"<< LL_ENDL;
mURL.clear();
mMediaPlugin->stop();
delete mMediaPlugin;
mMediaPlugin = nullptr;
}
}
@ -79,6 +81,8 @@ void LLStreamingAudio_MediaPlugins::stop()
if(mMediaPlugin)
{
mMediaPlugin->stop();
delete mMediaPlugin;
mMediaPlugin = nullptr;
}
mURL.clear();