diff --git a/audiodecoder.gsf/addon.xml.in b/audiodecoder.gsf/addon.xml.in index a03c569..c14c66f 100644 --- a/audiodecoder.gsf/addon.xml.in +++ b/audiodecoder.gsf/addon.xml.in @@ -1,7 +1,7 @@ @ADDON_DEPENDS@ diff --git a/src/GSFCodec.cpp b/src/GSFCodec.cpp index acad108..3c4bd12 100644 --- a/src/GSFCodec.cpp +++ b/src/GSFCodec.cpp @@ -246,8 +246,7 @@ extern "C" //------------------------------------------------------------------------------ -CGSFCodec::CGSFCodec(KODI_HANDLE instance, const std::string& version) - : CInstanceAudioDecoder(instance, version) +CGSFCodec::CGSFCodec(const kodi::addon::IInstanceInfo& instance) : CInstanceAudioDecoder(instance) { } @@ -369,13 +368,10 @@ class ATTR_DLL_LOCAL CMyAddon : public kodi::addon::CAddonBase { public: CMyAddon() = default; - ADDON_STATUS CreateInstance(int instanceType, - const std::string& instanceID, - KODI_HANDLE instance, - const std::string& version, - KODI_HANDLE& addonInstance) override + ADDON_STATUS CreateInstance(const kodi::addon::IInstanceInfo& instance, + KODI_ADDON_INSTANCE_HDL& hdl) override { - addonInstance = new CGSFCodec(instance, version); + hdl = new CGSFCodec(instance); return ADDON_STATUS_OK; } virtual ~CMyAddon() = default; diff --git a/src/GSFCodec.h b/src/GSFCodec.h index 1e7570c..bb8aa11 100644 --- a/src/GSFCodec.h +++ b/src/GSFCodec.h @@ -59,7 +59,7 @@ struct GSFContext class ATTR_DLL_LOCAL CGSFCodec : public kodi::addon::CInstanceAudioDecoder { public: - CGSFCodec(KODI_HANDLE instance, const std::string& version); + CGSFCodec(const kodi::addon::IInstanceInfo& instance); virtual ~CGSFCodec(); bool Init(const std::string& filename,