Stop the attached Source when a Video gets destroyed

Before it would end up paused, but this means the audio playback thread will
still keep it alive. Since there are no other references, there is no way to
then free that Source anymore.
This commit is contained in:
Bart van Strien
2019-08-11 15:34:00 +02:00
parent cb625d890a
commit 932068e777
+2
View File
@@ -96,6 +96,8 @@ Video::Video(Graphics *gfx, love::video::VideoStream *stream, float dpiscale)
Video::~Video()
{
if (source)
source->stop();
}
love::video::VideoStream *Video::getStream()