From 41ae158a9c98619a6a99f0a54a6f574df981268b Mon Sep 17 00:00:00 2001 From: SoftCoder Date: Tue, 29 Sep 2015 02:13:49 -0700 Subject: [PATCH] - bugfix for sdl2 compile using wrong object --- source/shared_lib/sources/graphics/video_player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/shared_lib/sources/graphics/video_player.cpp b/source/shared_lib/sources/graphics/video_player.cpp index 662a220d2..5c8d65815 100644 --- a/source/shared_lib/sources/graphics/video_player.cpp +++ b/source/shared_lib/sources/graphics/video_player.cpp @@ -919,7 +919,7 @@ bool VideoPlayer::initPlayer(string mediaURL) { #if !defined(LIBVLC_VERSION_PRE_2) && !defined(LIBVLC_VERSION_PRE_1_1_0) libvlc_video_set_callbacks(ctxPtr->mp, lock, unlock, display, ctxPtr); - libvlc_video_set_format(ctxPtr->mp, "RV16", width, height, this->window->pitch); + libvlc_video_set_format(ctxPtr->mp, "RV16", width, height, SDL_GetWindowSurface(this->window)->pitch); #endif