From 3fbfff3b74b6b1c35c59b3f36a9183b32b6a7508 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sat, 24 Mar 2018 16:30:32 +0100 Subject: [PATCH] fix copy, suppemnent to last commit --- src/gui/infoviewer.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index 6326b9346..409197abf 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -1577,14 +1577,14 @@ void CInfoViewer::sendNoEpg(const t_channel_id for_channel_id) } } -void copy_info(CSectionsdClient::CurrentNextInfo _info, CSectionsdClient::CurrentNextInfo _oldinfo) +void copy_info(CSectionsdClient::CurrentNextInfo *_info, CSectionsdClient::CurrentNextInfo *_oldinfo) { - _oldinfo.current_uniqueKey = _info.current_uniqueKey; - _oldinfo.current_name = _info.current_name; - _oldinfo.current_fsk = _info.current_fsk; - _oldinfo.next_uniqueKey = _info.next_uniqueKey; - _oldinfo.next_name = _info.next_name; - _oldinfo.flags = _info.flags; + _oldinfo->current_uniqueKey = _info->current_uniqueKey; + _oldinfo->current_name = _info->current_name; + _oldinfo->current_fsk = _info->current_fsk; + _oldinfo->next_uniqueKey = _info->next_uniqueKey; + _oldinfo->next_name = _info->next_name; + _oldinfo->flags = _info->flags; } void CInfoViewer::getEPG(const t_channel_id for_channel_id, CSectionsdClient::CurrentNextInfo &info) @@ -1600,7 +1600,7 @@ void CInfoViewer::getEPG(const t_channel_id for_channel_id, CSectionsdClient::Cu /* of there is no EPG, send an event so that parental lock can work */ if (info.current_uniqueKey == 0 && info.next_uniqueKey == 0) { - copy_info(info,oldinfo); + copy_info(&info,&oldinfo); sendNoEpg(for_channel_id); return; } @@ -1620,7 +1620,7 @@ void CInfoViewer::getEPG(const t_channel_id for_channel_id, CSectionsdClient::Cu else msg = NeutrinoMessages::EVT_NOEPG_YET; g_RCInput->postMsg(msg, (const neutrino_msg_data_t)p, false); // data is pointer to allocated memory - copy_info(info,oldinfo); + copy_info(&info,&oldinfo); } }