Skip to content
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

[pvr] fix EPG crash and recording errors produced by not present data… #14616

Merged
merged 1 commit into from
Oct 16, 2018

Conversation

AlwinEsch
Copy link
Member

@AlwinEsch AlwinEsch commented Oct 15, 2018

Description

Found during my rework a crash produced by addon call of PVR::CPVRClient::IsRecordable(std::shared_ptr<PVR::CPVREpgInfoTag const> const&, bool&) const
where "strGenreDescription" on EPG_TAG was not set and has produced a crash by try to read them.

Further I seen also on PVR_RECORDING some values not set from Kodi by call to addon with them.

This change here has fixed the faults by me.

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of change

  • Bug fix (non-breaking change which fixes an issue)
  • Clean up (non-breaking change which removes non-working, unmaintained functionality)
  • Improvement (non-breaking change which improves existing functionality)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that will cause existing functionality to change)
  • Cosmetic change (non-breaking change that doesn't touch code)
  • None of the above (please explain below)

Checklist:

  • My code follows the Code Guidelines of this project
  • My change requires a change to the documentation, either Doxygen or wiki
  • I have updated the documentation accordingly
  • I have read the Contributing document
  • I have added tests to cover my change
  • All new and existing tests passed

… on addon call

Found during my rework a crash produced by addon call of `PVR::CPVRClient::IsRecordable(std::shared_ptr<PVR::CPVREpgInfoTag const> const&, bool&) const`
where "strGenreDescription" on EPG_TAG was not set and has produced a crash by try to read them.

Further I seen also on PVR_RECORDING some values not set from Kodi by call to addon with them.

This change here has fixed the faults by me.
@AlwinEsch AlwinEsch added Type: Fix non-breaking change which fixes an issue Component: PVR v18 Leia labels Oct 15, 2018
@AlwinEsch AlwinEsch added this to the Leia 18.0-beta4 milestone Oct 15, 2018
@AlwinEsch AlwinEsch requested a review from ksooo October 15, 2018 16:50
private:
CDateTime m_recordingTime; /*!< start time of the recording */
bool m_bGotMetaData;
bool m_bIsDeleted; /*!< set if entry is a deleted recording which can be undelete */
unsigned int m_iEpgEventId; /*!< epg broadcast id associated with this recording */
int m_iChannelUid; /*!< channel uid associated with this recording */
bool m_bRadio; /*!< radio or tv recording */
int m_iGenreType = 0; /*!< genre type */
int m_iGenreSubType = 0; /*!< genre subtype */

This comment was marked as spam.

Copy link
Member

@ksooo ksooo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me.

@ksooo
Copy link
Member

ksooo commented Oct 15, 2018

jenkins build this please

@ksooo
Copy link
Member

ksooo commented Oct 15, 2018

@Rechi any idea why the OSX jenkins build fails? Is that related to this PR? I don't think so.

@ksooo ksooo merged commit e66f3fe into xbmc:master Oct 16, 2018
@tgez

This comment has been minimized.

@AlwinEsch AlwinEsch deleted the fix-epg-crash branch October 16, 2018 20:09
@AlwinEsch
Copy link
Member Author

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: PVR Type: Fix non-breaking change which fixes an issue v18 Leia
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants