mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-19 09:27:22 -04:00
Fix videoplayer destruction issue that valgrind complained about
This commit is contained in:
parent
c8eb77c557
commit
7a2a7633d5
7
extern/osg-ffmpeg-videoplayer/videostate.cpp
vendored
7
extern/osg-ffmpeg-videoplayer/videostate.cpp
vendored
@ -721,7 +721,12 @@ void VideoState::deinit()
|
|||||||
avformat_close_input(&this->format_ctx);
|
avformat_close_input(&this->format_ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
mTexture = NULL;
|
if (mTexture)
|
||||||
|
{
|
||||||
|
// reset Image separately, it's pointing to *this and there might still be outside references to mTexture
|
||||||
|
mTexture->setImage(NULL);
|
||||||
|
mTexture = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
double VideoState::get_external_clock()
|
double VideoState::get_external_clock()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user