Kodi Community Forum
AMLPlayer.cpp - CMediaSettings not declared bug - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+---- Forum: Android Development (https://forum.kodi.tv/forumdisplay.php?fid=184)
+---- Thread: AMLPlayer.cpp - CMediaSettings not declared bug (/showthread.php?tid=161550)



AMLPlayer.cpp - CMediaSettings not declared bug - brianf21 - 2013-04-05

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.


This forum uses Lukasz Tkacz MyBB addons.