Skip to content

Commit

Permalink
rpi: When (re)initializing clock, clear seek_in_progress variable or …
Browse files Browse the repository at this point in the history
…we might crash

Fixes #2151
  • Loading branch information
andoma committed May 15, 2014
1 parent f6cfa3a commit 02726de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/arch/rpi/omx.c
Original file line number Diff line number Diff line change
Expand Up @@ -560,9 +560,8 @@ static void
omx_clk_init(omx_clk_t *clk, int has_audio)
{
OMX_TIME_CONFIG_CLOCKSTATETYPE cstate;

clk->has_audio = has_audio;

clk->seek_in_progress = 0;
OMX_INIT_STRUCTURE(cstate);
cstate.eState = OMX_TIME_ClockStateStopped;
omxchk(OMX_SetParameter(clk->c->oc_handle,
Expand Down

0 comments on commit 02726de

Please sign in to comment.