Mercurial > mm7
diff CShow.h @ 2142:ca548138d6aa
some code cleaning in video playing, loops play but there is a memory leak
author | zipi |
---|---|
date | Thu, 02 Jan 2014 18:25:42 +0000 |
parents | c4ab816fcc5e |
children | cb66a1082fcf |
line wrap: on
line diff
--- a/CShow.h Thu Jan 02 17:57:09 2014 +0600 +++ b/CShow.h Thu Jan 02 18:25:42 2014 +0000 @@ -23,13 +23,13 @@ switch (movie) { - case MOVIE_3DOLogo: VideoPlayer::MovieLoop("3dologo", 0, 0, 1); break; - case MOVIE_NWCLogo: VideoPlayer::MovieLoop("new world logo", 0, 1, 1); break; - case MOVIE_JVC: VideoPlayer::MovieLoop("jvc", 0, 1, 1); break; - case MOVIE_Intro: VideoPlayer::MovieLoop("Intro", 0, 1, 1); break; - case MOVIE_Emerald: VideoPlayer::MovieLoop("Intro Post", 0, 1, 1); break; - case MOVIE_Death: VideoPlayer::MovieLoop("losegame", 2, 1, 1); break; - case MOVIE_Outro: VideoPlayer::MovieLoop("end_seq1", 20, 1, 1); break; + case MOVIE_3DOLogo: pVideoPlayer->MovieLoop("3dologo", 0, 0, 1); break; + case MOVIE_NWCLogo: pVideoPlayer->MovieLoop("new world logo", 0, 1, 1); break; + case MOVIE_JVC: pVideoPlayer->MovieLoop("jvc", 0, 1, 1); break; + case MOVIE_Intro: pVideoPlayer->MovieLoop("Intro", 0, 1, 1); break; + case MOVIE_Emerald: pVideoPlayer->MovieLoop("Intro Post", 0, 1, 1); break; + case MOVIE_Death: pVideoPlayer->MovieLoop("losegame", 2, 1, 1); break; + case MOVIE_Outro: pVideoPlayer->MovieLoop("end_seq1", 20, 1, 1); break; default: Error("Invalid movie requested: %u", movie);