diff options
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/VideoCodec.h')
| -rw-r--r-- | xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/VideoCodec.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/VideoCodec.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/VideoCodec.h index 9c33fbf..54246f0 100644 --- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/VideoCodec.h +++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/VideoCodec.h | |||
| @@ -80,13 +80,13 @@ extern "C" | |||
| 80 | 80 | ||
| 81 | int64_t pts; | 81 | int64_t pts; |
| 82 | 82 | ||
| 83 | void *buffer; //< will be passed in release_frame_buffer | 83 | KODI_HANDLE buffer; //< will be passed in release_frame_buffer |
| 84 | }; | 84 | }; |
| 85 | 85 | ||
| 86 | enum VIDEOCODEC_RETVAL | 86 | enum VIDEOCODEC_RETVAL |
| 87 | { | 87 | { |
| 88 | VC_NONE = 0, //< noop | 88 | VC_NONE = 0, //< noop |
| 89 | VC_ERROR, //< an error occured, no other messages will be returned | 89 | VC_ERROR, //< an error occurred, no other messages will be returned |
| 90 | VC_BUFFER, //< the decoder needs more data | 90 | VC_BUFFER, //< the decoder needs more data |
| 91 | VC_PICTURE, //< the decoder got a picture | 91 | VC_PICTURE, //< the decoder got a picture |
| 92 | VC_EOF, //< the decoder signals EOF | 92 | VC_EOF, //< the decoder signals EOF |
| @@ -143,11 +143,13 @@ namespace kodi | |||
| 143 | namespace addon | 143 | namespace addon |
| 144 | { | 144 | { |
| 145 | 145 | ||
| 146 | class CInstanceVideoCodec : public IAddonInstance | 146 | class ATTRIBUTE_HIDDEN CInstanceVideoCodec : public IAddonInstance |
| 147 | { | 147 | { |
| 148 | public: | 148 | public: |
| 149 | explicit CInstanceVideoCodec(KODI_HANDLE instance) | 149 | explicit CInstanceVideoCodec(KODI_HANDLE instance, const std::string& kodiVersion = "") |
| 150 | : IAddonInstance(ADDON_INSTANCE_VIDEOCODEC) | 150 | : IAddonInstance(ADDON_INSTANCE_VIDEOCODEC, |
| 151 | !kodiVersion.empty() ? kodiVersion | ||
| 152 | : GetKodiTypeVersion(ADDON_INSTANCE_VIDEOCODEC)) | ||
| 151 | { | 153 | { |
| 152 | if (CAddonBase::m_interface->globalSingleInstance != nullptr) | 154 | if (CAddonBase::m_interface->globalSingleInstance != nullptr) |
| 153 | throw std::logic_error("kodi::addon::CInstanceVideoCodec: Creation of multiple together with single instance way is not allowed!"); | 155 | throw std::logic_error("kodi::addon::CInstanceVideoCodec: Creation of multiple together with single instance way is not allowed!"); |
