mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 18:01:13 +02:00
- moviebrowser: prevent segfault at movies w/o channellogo
commit taken from max10s-neutrino-mp
This commit is contained in:
@@ -1322,11 +1322,14 @@ void CMovieBrowser::refreshMovieInfo(void)
|
|||||||
m_movieSelectionHandler->epgChannel, m_movieSelectionHandler->epgEpgId >>16);
|
m_movieSelectionHandler->epgChannel, m_movieSelectionHandler->epgEpgId >>16);
|
||||||
old_EpgId = m_movieSelectionHandler->epgEpgId >>16;
|
old_EpgId = m_movieSelectionHandler->epgEpgId >>16;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (CChannelLogo) {
|
||||||
lx = m_cBoxFrame.iX+m_cBoxFrameTitleRel.iX+m_cBoxFrameTitleRel.iWidth-CChannelLogo->getWidth()-10;
|
lx = m_cBoxFrame.iX+m_cBoxFrameTitleRel.iX+m_cBoxFrameTitleRel.iWidth-CChannelLogo->getWidth()-10;
|
||||||
ly = m_cBoxFrameTitleRel.iY+m_cBoxFrame.iY+ (m_cBoxFrameTitleRel.iHeight-CChannelLogo->getHeight())/2;
|
ly = m_cBoxFrameTitleRel.iY+m_cBoxFrame.iY+ (m_cBoxFrameTitleRel.iHeight-CChannelLogo->getHeight())/2;
|
||||||
CChannelLogo->setXPos(lx - pb_hdd_offset);
|
CChannelLogo->setXPos(lx - pb_hdd_offset);
|
||||||
CChannelLogo->setYPos(ly);
|
CChannelLogo->setYPos(ly);
|
||||||
CChannelLogo->paint();
|
CChannelLogo->paint();
|
||||||
|
}
|
||||||
|
|
||||||
if(logo_ok) {
|
if(logo_ok) {
|
||||||
lx = m_cBoxFrameInfo.iX+m_cBoxFrameInfo.iWidth - flogo_w -14;
|
lx = m_cBoxFrameInfo.iX+m_cBoxFrameInfo.iWidth - flogo_w -14;
|
||||||
|
Reference in New Issue
Block a user