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
This commit is contained in:
seife
2011-01-02 18:20:45 +00:00
parent 72bfd0bdc2
commit a625e892af

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;