bsv_movie_check - cleanup

This commit is contained in:
twinaphex 2017-05-09 00:40:13 +02:00
parent 67c67f566f
commit 281dd9b4ac

12
movie.c
View File

@ -557,19 +557,15 @@ static bool runloop_check_movie_init(void)
bool bsv_movie_check(void)
{
if (bsv_movie_state_handle && bsv_movie_state.movie_playback)
if (!bsv_movie_state_handle)
return runloop_check_movie_init();
if (bsv_movie_state.movie_playback)
{
if (!bsv_movie_state.movie_end)
return false;
return bsv_movie_check_movie_playback();
}
if (!bsv_movie_state_handle)
{
if (bsv_movie_state_handle)
return false;
return runloop_check_movie_init();
}
return runloop_check_movie_record();
}