From 290aacd2a6482ff307bed79455f16c41f4772f17 Mon Sep 17 00:00:00 2001 From: scrawl Date: Sun, 19 Oct 2014 23:53:39 +0200 Subject: [PATCH] Fix videoplayer crash on quit The sound stream thread was trying to update the stream during/after destruction of the video state. --- apps/openmw/mwrender/videoplayer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/openmw/mwrender/videoplayer.cpp b/apps/openmw/mwrender/videoplayer.cpp index f2e9543ae6..b2517251bf 100644 --- a/apps/openmw/mwrender/videoplayer.cpp +++ b/apps/openmw/mwrender/videoplayer.cpp @@ -1099,6 +1099,8 @@ void VideoState::deinit() { this->quit = true; + this->AudioTrack.reset(); + this->audioq.cond.notify_one(); this->videoq.cond.notify_one();