Fixed a Valgrind error in VideoVlcComponent.

This commit is contained in:
Leon Styhre 2021-03-01 18:52:20 +01:00
parent 2d5662780f
commit 5bc19fc723

View file

@ -30,8 +30,12 @@
libvlc_instance_t* VideoVlcComponent::mVLC = nullptr; libvlc_instance_t* VideoVlcComponent::mVLC = nullptr;
VideoVlcComponent::VideoVlcComponent(Window* window) VideoVlcComponent::VideoVlcComponent(
: VideoComponent(window), mMediaPlayer(nullptr), mContext({}) Window* window)
: VideoComponent(window),
mMediaPlayer(nullptr),
mContext({}),
mHasSetAudioVolume(false)
{ {
// Get an empty texture for rendering the video. // Get an empty texture for rendering the video.
mTexture = TextureResource::get(""); mTexture = TextureResource::get("");