Skip to content

Commit

Permalink
Small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Jan 22, 2017
1 parent a9a3f6b commit 5bc611c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion input/input_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ int16_t input_state(unsigned port, unsigned device,
}
}

if (!input_driver_flushing_input
if ( !input_driver_flushing_input
&& !input_driver_block_libretro_input)
{
if (((id < RARCH_FIRST_META_KEY) || (device == RETRO_DEVICE_KEYBOARD)))
Expand Down
4 changes: 1 addition & 3 deletions movie.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,6 @@ bool bsv_movie_ctl(enum bsv_ctl_state state, void *data)
case BSV_MOVIE_CTL_UNSET_START_PLAYBACK:
bsv_movie_state.movie_start_playback = false;
break;
case BSV_MOVIE_CTL_END:
return bsv_movie_state.movie_end;
case BSV_MOVIE_CTL_SET_END_EOF:
bsv_movie_state.eof_exit = true;
break;
Expand Down Expand Up @@ -468,7 +466,7 @@ bool bsv_movie_init_handle(const char *path,
/* Checks if movie is being played back. */
static bool runloop_check_movie_playback(void)
{
if (!bsv_movie_ctl(BSV_MOVIE_CTL_END, NULL))
if (!bsv_movie_state.movie_end)
return false;

runloop_msg_queue_push(
Expand Down
1 change: 0 additions & 1 deletion movie.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ enum bsv_ctl_state
BSV_MOVIE_CTL_INIT,
BSV_MOVIE_CTL_END_EOF,
BSV_MOVIE_CTL_SET_END_EOF,
BSV_MOVIE_CTL_END,
BSV_MOVIE_CTL_SET_END,
BSV_MOVIE_CTL_UNSET_END
};
Expand Down

0 comments on commit 5bc611c

Please sign in to comment.