Skip to content

Commit

Permalink
Merge pull request xbmc#25564 from ksooo/pvr-fix-member-init
Browse files Browse the repository at this point in the history
[PVR] Fix CAddonRecording member init.
  • Loading branch information
ksooo authored Aug 2, 2024
2 parents 78100c5 + f3217b3 commit f6265c8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions xbmc/pvr/addons/PVRClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class CAddonRecording : public PVR_RECORDING
m_iconPath(recording.ClientIconPath()),
m_thumbnailPath(recording.ClientThumbnailPath()),
m_fanartPath(recording.ClientFanartPath()),
m_firstAired(recording.FirstAired().GetAsW3CDate()),
m_firstAired(recording.FirstAired().IsValid() ? recording.FirstAired().GetAsW3CDate() : ""),
m_providerName(recording.ProviderName())
{
time_t recTime;
Expand Down Expand Up @@ -156,8 +156,7 @@ class CAddonRecording : public PVR_RECORDING
iChannelUid = recording.ChannelUid();
channelType =
recording.IsRadio() ? PVR_RECORDING_CHANNEL_TYPE_RADIO : PVR_RECORDING_CHANNEL_TYPE_TV;
if (recording.FirstAired().IsValid())
strFirstAired = m_firstAired.c_str();
strFirstAired = m_firstAired.c_str();
iFlags = recording.Flags();
sizeInBytes = recording.GetSizeInBytes();
strProviderName = m_providerName.c_str();
Expand Down

0 comments on commit f6265c8

Please sign in to comment.