Skip to content

Commit

Permalink
Merge pull request #34 from AlwinEsch/Nexus-change
Browse files Browse the repository at this point in the history
[Nexus] API related update
  • Loading branch information
AlwinEsch authored Dec 31, 2021
2 parents a25bc8c + a21603e commit 6369b5f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion audiodecoder.gsf/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="audiodecoder.gsf"
version="20.1.0"
version="20.2.0"
name="GSF Audio Decoder"
provider-name="spiff">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
12 changes: 4 additions & 8 deletions src/GSFCodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
}

Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/GSFCodec.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6369b5f

Please sign in to comment.