mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
pictureviewer.cpp: fix possible segfault
This commit is contained in:
@@ -430,16 +430,19 @@ int CPictureViewerGui::show()
|
|||||||
}
|
}
|
||||||
else if (msg==CRCInput::RC_blue)
|
else if (msg==CRCInput::RC_blue)
|
||||||
{
|
{
|
||||||
if ((m_state == MENU) && (!playlist.empty()))
|
if(!playlist.empty())
|
||||||
{
|
{
|
||||||
m_time=(long)time(NULL);
|
if (m_state == MENU)
|
||||||
view(selected);
|
{
|
||||||
m_state=SLIDESHOW;
|
m_time=(long)time(NULL);
|
||||||
} else {
|
view(selected);
|
||||||
if (m_state == SLIDESHOW)
|
m_state=SLIDESHOW;
|
||||||
m_state = VIEW;
|
} else {
|
||||||
else
|
if (m_state == SLIDESHOW)
|
||||||
m_state = SLIDESHOW;
|
m_state = VIEW;
|
||||||
|
else
|
||||||
|
m_state = SLIDESHOW;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (msg==CRCInput::RC_help)
|
else if (msg==CRCInput::RC_help)
|
||||||
|
Reference in New Issue
Block a user