Destroy stream process when stopping audio stream to allow restarting in the case of stuck or errored libvlc (#2124)
parent
fceec45641
commit
c98498e6ea
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue