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


Origin commit data
------------------
Branch: ni/coolstream
Commit: a625e892af
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-01-02 (Sun, 02 Jan 2011)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2011-01-02 18:20:45 +00:00
parent 1b49f6e56b
commit 8b7779ac3b

View File

@@ -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:
/* NULL crashes in getIconSize, just use something */
playicon = NEUTRINO_ICON_BUTTON_HELP;
break;
}
int icon_w = 0,icon_h = 0;