-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement PVR Addon API changes for Leia #315
Conversation
BTW, this fixes #106 |
Big thx for implementing this. |
@piotrasd if you don't stop to spam here with unrelated stuff I will ban you. Use the forum or open an issue here for feature requests. BTW, this is not a pvr.hts issue. Ask the skinners in the Kodi forum for support, please. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, thanks for picking this up!
src/HTSPDemuxer.cpp
Outdated
{ | ||
CLockObject lock(m_mutex); | ||
|
||
info = {0}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In pvr.hts, we everywhere zero the structs that are passed to the addon from outside, yes. Usually we use memset, but I prefer modern syntax nowadays. btw, memset would overwrite the vtable of the struct if it would have one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, and main reason is, if a member gets added to a struct by an api change, this prevents that the initialization of the new member must be explicitly added to every addon. As long as the new member's default value is "0" (in memory represantation), this is very handy.
8991f14
to
94df0d1
Compare
pvr.hts/addon.xml.in
Outdated
@@ -1,7 +1,7 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<addon | |||
id="pvr.hts" | |||
version="4.0.16" | |||
version="4.0.17" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should use 4.1.0
instead since this implements a new verison the PVR API?
2d797de
to
0b1a3fb
Compare
…VR_ADDON_CAPABILITIES lifetime values
Refer to xbmc/xbmc#12303 for more details.
@Jalle19 this is WIP, review welcome, but WIP wrt other changes that might follow. BTW, I took myself the freedom to cherry-pick from https://github.com/Jalle19/pvr.hts/tree/htsp-descramble-info ;-)