From c98498e6ea04570a6234c13c543105df69b58f46 Mon Sep 17 00:00:00 2001 From: Rye Mutt Date: Sat, 27 Jul 2024 11:15:00 -0400 Subject: Destroy stream process when stopping audio stream to allow restarting in the case of stuck or errored libvlc (#2124) --- indra/newview/llviewermedia_streamingaudio.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'indra/newview/llviewermedia_streamingaudio.cpp') diff --git a/indra/newview/llviewermedia_streamingaudio.cpp b/indra/newview/llviewermedia_streamingaudio.cpp index af3a21c183..b68ffbe1a2 100644 --- a/indra/newview/llviewermedia_streamingaudio.cpp +++ b/indra/newview/llviewermedia_streamingaudio.cpp @@ -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(); -- cgit v1.2.3