Skip to content

Commit

Permalink
Merge pull request #864 from AlwinEsch/Nexus-change
Browse files Browse the repository at this point in the history
[Nexus] API related update
  • Loading branch information
AlwinEsch authored Jan 1, 2022
2 parents 785d2b1 + 13ee67a commit 1e9924c
Show file tree
Hide file tree
Showing 18 changed files with 95 additions and 105 deletions.
2 changes: 1 addition & 1 deletion inputstream.adaptive/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="inputstream.adaptive"
version="20.0.3"
version="20.1.0"
name="InputStream Adaptive"
provider-name="peak3d">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
4 changes: 4 additions & 0 deletions inputstream.adaptive/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v20.1.0 (2021-12-23)
- Translation updates by Weblate
- Kodi main API update to version 2.0.0

v20.0.3 (2021-12-10)
- Fix compile error by GCC 11
- Fix build about global Kodi API version 1.3.1
Expand Down
6 changes: 6 additions & 0 deletions lib/webm_parser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,9 @@ set(webm_parser_sources

add_library(webm_parser STATIC ${webm_parser_sources})
set_target_properties(webm_parser PROPERTIES POSITION_INDEPENDENT_CODE True)

# Fix C++17 Win UWP build error on src/master_parser.h line 156 and 160 with C4996.
# NOTE: Check sometimes libwebm becomes update byself in future to fix about!
if(CORE_SYSTEM_NAME MATCHES windows)
target_compile_definitions(webm_parser PRIVATE -D_SILENCE_CXX17_ADAPTOR_TYPEDEFS_DEPRECATION_WARNING)
endif()
6 changes: 3 additions & 3 deletions src/ADTSReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

class AP4_ByteStream;

class ATTRIBUTE_HIDDEN ID3TAG
class ATTR_DLL_LOCAL ID3TAG
{
public:
enum PARSECODE
Expand All @@ -49,7 +49,7 @@ class ATTRIBUTE_HIDDEN ID3TAG
};


class ATTRIBUTE_HIDDEN ADTSFrame
class ATTR_DLL_LOCAL ADTSFrame
{
public:
bool parse(AP4_ByteStream *stream);
Expand All @@ -74,7 +74,7 @@ class ATTRIBUTE_HIDDEN ADTSFrame
AP4_DataBuffer m_dataBuffer;
};

class ATTRIBUTE_HIDDEN ADTSReader
class ATTR_DLL_LOCAL ADTSReader
{
public:
ADTSReader(AP4_ByteStream *stream);
Expand Down
2 changes: 1 addition & 1 deletion src/TSReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

class AP4_ByteStream;

class ATTRIBUTE_HIDDEN TSReader : public TSDemux::TSDemuxer
class ATTR_DLL_LOCAL TSReader : public TSDemux::TSDemuxer
{
public:
TSReader(AP4_ByteStream *stream, uint32_t requiredMask);
Expand Down
2 changes: 1 addition & 1 deletion src/WebmReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <webm/reader.h>
#include <webm/webm_parser.h>

class ATTRIBUTE_HIDDEN WebmAP4Reader : public webm::Reader
class ATTR_DLL_LOCAL WebmAP4Reader : public webm::Reader
{
public:
WebmAP4Reader(AP4_ByteStream *stream) :m_stream(stream) {};
Expand Down
2 changes: 1 addition & 1 deletion src/WebmReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class AP4_ByteStream;
class WebmAP4Reader;


class ATTRIBUTE_HIDDEN WebmReader : public webm::Callback
class ATTR_DLL_LOCAL WebmReader : public webm::Callback
{
public:

Expand Down
2 changes: 1 addition & 1 deletion src/aes_decrypter.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include <kodi/AddonBase.h>

class ATTRIBUTE_HIDDEN AESDecrypter : public IAESDecrypter
class ATTR_DLL_LOCAL AESDecrypter : public IAESDecrypter
{
public:
AESDecrypter(const std::string& licenseKey) : m_licenseKey(licenseKey){};
Expand Down
4 changes: 2 additions & 2 deletions src/common/AdaptiveStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ namespace adaptive
{
class AdaptiveStream;

class ATTRIBUTE_HIDDEN AdaptiveStreamObserver
class ATTR_DLL_LOCAL AdaptiveStreamObserver
{
public:
virtual void OnSegmentChanged(AdaptiveStream *stream) = 0;
virtual void OnStreamChange(AdaptiveStream *stream) = 0;
};

class ATTRIBUTE_HIDDEN AdaptiveStream
class ATTR_DLL_LOCAL AdaptiveStream
{
public:
AdaptiveStream(AdaptiveTree& tree,
Expand Down
4 changes: 2 additions & 2 deletions src/common/AdaptiveTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace adaptive
{

template<typename T>
struct ATTRIBUTE_HIDDEN SPINCACHE
struct ATTR_DLL_LOCAL SPINCACHE
{
SPINCACHE() :basePos(0) {};

Expand Down Expand Up @@ -92,7 +92,7 @@ struct ATTRIBUTE_HIDDEN SPINCACHE
std::vector<T> data;
};

class ATTRIBUTE_HIDDEN AdaptiveTree
class ATTR_DLL_LOCAL AdaptiveTree
{
public:
enum StreamType
Expand Down
Loading

0 comments on commit 1e9924c

Please sign in to comment.