diff options
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/libXBMC_pvr.h')
| -rw-r--r-- | xbmc/addons/kodi-addon-dev-kit/include/kodi/libXBMC_pvr.h | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/libXBMC_pvr.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/libXBMC_pvr.h index 700f912..a769328 100644 --- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/libXBMC_pvr.h +++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/libXBMC_pvr.h | |||
| @@ -27,16 +27,12 @@ | |||
| 27 | #include "xbmc_pvr_types.h" | 27 | #include "xbmc_pvr_types.h" |
| 28 | #include "libXBMC_addon.h" | 28 | #include "libXBMC_addon.h" |
| 29 | 29 | ||
| 30 | #ifdef _WIN32 | 30 | #define PVR_HELPER_DLL_NAME XBMC_DLL_NAME("pvr") |
| 31 | #define PVR_HELPER_DLL "\\library.xbmc.pvr\\libXBMC_pvr" ADDON_HELPER_EXT | 31 | #define PVR_HELPER_DLL XBMC_DLL("pvr") |
| 32 | #else | ||
| 33 | #define PVR_HELPER_DLL_NAME "libXBMC_pvr-" ADDON_HELPER_ARCH ADDON_HELPER_EXT | ||
| 34 | #define PVR_HELPER_DLL "/library.xbmc.pvr/" PVR_HELPER_DLL_NAME | ||
| 35 | #endif | ||
| 36 | 32 | ||
| 37 | #define DVD_TIME_BASE 1000000 | 33 | #define DVD_TIME_BASE 1000000 |
| 38 | 34 | ||
| 39 | //TODO original definition is in DVDClock.h | 35 | //! @todo original definition is in DVDClock.h |
| 40 | #define DVD_NOPTS_VALUE 0xFFF0000000000000 | 36 | #define DVD_NOPTS_VALUE 0xFFF0000000000000 |
| 41 | 37 | ||
| 42 | class CHelper_libXBMC_pvr | 38 | class CHelper_libXBMC_pvr |
| @@ -70,15 +66,6 @@ public: | |||
| 70 | libBasePath = ((cb_array*)m_Handle)->libPath; | 66 | libBasePath = ((cb_array*)m_Handle)->libPath; |
| 71 | libBasePath += PVR_HELPER_DLL; | 67 | libBasePath += PVR_HELPER_DLL; |
| 72 | 68 | ||
| 73 | #if defined(ANDROID) | ||
| 74 | struct stat st; | ||
| 75 | if(stat(libBasePath.c_str(),&st) != 0) | ||
| 76 | { | ||
| 77 | std::string tempbin = getenv("XBMC_ANDROID_LIBS"); | ||
| 78 | libBasePath = tempbin + "/" + PVR_HELPER_DLL_NAME; | ||
| 79 | } | ||
| 80 | #endif | ||
| 81 | |||
| 82 | m_libXBMC_pvr = dlopen(libBasePath.c_str(), RTLD_LAZY); | 69 | m_libXBMC_pvr = dlopen(libBasePath.c_str(), RTLD_LAZY); |
| 83 | if (m_libXBMC_pvr == NULL) | 70 | if (m_libXBMC_pvr == NULL) |
| 84 | { | 71 | { |
