From a625e892af7d0fa7057268e0397ebbf3703013e9 Mon Sep 17 00:00:00 2001 From: seife Date: Sun, 2 Jan 2011 18:20:45 +0000 Subject: [PATCH] neutrino: fix crash in showMovieTitle if playstate is not as expected git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@993 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/gui/infoviewer.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index f4a8661ab..8f929e7bf 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -529,19 +529,21 @@ void CInfoViewer::showMovieTitle(const int playState, const std::string Channel, const char *playicon = NULL; switch (playState) { - case 3: //PLAY + case 3: //PLAY playicon = NEUTRINO_ICON_PLAY; break; - case 4: //PAUSE + case 4: //PAUSE playicon = NEUTRINO_ICON_PAUSE; break; - case 6: //REW + case 6: //REW playicon = NEUTRINO_ICON_REW; break; case 5: //FF playicon = NEUTRINO_ICON_FF; break; - default: + default: + /* NULL crashes in getIconSize, just use something */ + playicon = NEUTRINO_ICON_BUTTON_HELP; break; } int icon_w = 0,icon_h = 0;