Kodi Community Forum

Full Version: AMLPlayer.cpp - CMediaSettings not declared bug
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Missing include statement:

Code:
diff --git a/xbmc/cores/amlplayer/AMLPlayer.cpp b/xbmc/cores/amlplayer/AMLPlayer.cpp
index bd9c755..d6b7bdf 100644
--- a/xbmc/cores/amlplayer/AMLPlayer.cpp
+++ b/xbmc/cores/amlplayer/AMLPlayer.cpp
@@ -37,6 +37,7 @@
#include "guilib/GUIWindowManager.h"
#include "guilib/LocalizeStrings.h"
#include "settings/AdvancedSettings.h"
+#include "settings/MediaSettings.h"
#include "settings/GUISettings.h"
#include "settings/Settings.h"
#include "settings/VideoSettings.h"

Also, there is an issue with the following statement in AMLPlayer.cpp

Code:
CJobManager::GetInstance().UnPause(kJobTypeMediaFlags);

The UnPause method in JobManager.cpp requires a 'const CJob:TongueRIORITY&' argument. kJobTypeMediaFlags is returned from a method in VideoThumbLoader.h as a const char*. I changed kJobTypeMediaFlags to CJob:TongueRIORITY_LOW in AMLPlayer.cpp just to get it compiled, but I am sure that is not right.