Merge pull request #148 from hex007/video-strech-incorrect

Bug fixes
This commit is contained in:
Jools Wills 2017-05-31 13:13:12 +01:00 committed by GitHub
commit 94b7d7e969
2 changed files with 1 additions and 5 deletions

View file

@ -89,8 +89,6 @@ void VideoComponent::setImage(std::string path)
return; return;
mStaticImage.setImage(path); mStaticImage.setImage(path);
// Make the image stretch to fill the video region
mStaticImage.setSize(getSize());
mFadeIn = 0.0f; mFadeIn = 0.0f;
mStaticImagePath = path; mStaticImagePath = path;
} }

View file

@ -231,9 +231,7 @@ void VideoVlcComponent::setupVLC()
// If VLC hasn't been initialised yet then do it now // If VLC hasn't been initialised yet then do it now
if (!mVLC) if (!mVLC)
{ {
const char* args[] = { "--quiet", "", "", "" }; const char* args[] = { "--quiet" };
// check if we want to mute the audio
mVLC = libvlc_new(sizeof(args) / sizeof(args[0]), args); mVLC = libvlc_new(sizeof(args) / sizeof(args[0]), args);
} }
} }