From 5bc19fc7230e7ec4c11c0b86fe36e19d31a78bb3 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 1 Mar 2021 18:52:20 +0100 Subject: [PATCH] Fixed a Valgrind error in VideoVlcComponent. --- es-core/src/components/VideoVlcComponent.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/es-core/src/components/VideoVlcComponent.cpp b/es-core/src/components/VideoVlcComponent.cpp index 33038756f..0cf8b6c07 100644 --- a/es-core/src/components/VideoVlcComponent.cpp +++ b/es-core/src/components/VideoVlcComponent.cpp @@ -30,8 +30,12 @@ libvlc_instance_t* VideoVlcComponent::mVLC = nullptr; -VideoVlcComponent::VideoVlcComponent(Window* window) - : VideoComponent(window), mMediaPlayer(nullptr), mContext({}) +VideoVlcComponent::VideoVlcComponent( + Window* window) + : VideoComponent(window), + mMediaPlayer(nullptr), + mContext({}), + mHasSetAudioVolume(false) { // Get an empty texture for rendering the video. mTexture = TextureResource::get("");