diff options
author | Kai Sommerfeld <3226626+ksooo@users.noreply.github.com> | 2024-10-20 09:22:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-20 09:22:36 +0200 |
commit | dbd88eb5989fe1fc8d8f3b05d4de6d82f354dc77 (patch) | |
tree | ae20257d78035619d4f8967cff69af4d17aa1f11 | |
parent | 8f951165cc7970007914acc1691e3a07e3989d40 (diff) | |
parent | 846a98dc02532f4ebb3e0ea502c26e93e4c77f88 (diff) |
Merge pull request #25853 from ksooo/pvr-fix-parental-data-init
[PVR] CAddEpgTag, CAddonRecording: Add missing init of some parental …
-rw-r--r-- | xbmc/pvr/addons/PVRClient.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xbmc/pvr/addons/PVRClient.cpp b/xbmc/pvr/addons/PVRClient.cpp index 4e1fca84b9..dd868f6292 100644 --- a/xbmc/pvr/addons/PVRClient.cpp +++ b/xbmc/pvr/addons/PVRClient.cpp @@ -133,9 +133,9 @@ public: m_fanartPath(recording.ClientFanartPath()), m_firstAired(recording.FirstAired().IsValid() ? recording.FirstAired().GetAsW3CDate() : ""), m_providerName(recording.ProviderName()), - m_parentalRatingCode(""), //! @todo - m_parentalRatingIcon(""), //! @todo - m_parentalRatingSource("") //! @todo + m_parentalRatingCode(recording.GetParentalRatingCode()), + m_parentalRatingIcon(recording.GetParentalRatingIcon()), + m_parentalRatingSource(recording.GetParentalRatingSource()) { // zero-init base struct members PVR_RECORDING* base = static_cast<PVR_RECORDING*>(this); @@ -306,8 +306,8 @@ public: m_genreDescription(tag.GenreDescription()), m_firstAired(GetFirstAired(tag)), m_parentalRatingCode(tag.ParentalRatingCode()), - m_parentalRatingIcon(""), //! @todo - m_parentalRatingSource("") //! @todo + m_parentalRatingIcon(tag.ParentalRatingIcon()), + m_parentalRatingSource(tag.ParentalRatingSource()) { // zero-init base struct members EPG_TAG* base = static_cast<EPG_TAG*>(this); |