Skip to content

Commit

Permalink
ijkplayer: fix get_current_position issue
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondzheng committed Jan 31, 2018
1 parent a973bcd commit 34d5b2e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ijkmedia/ijkplayer/ff_ffplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -1185,6 +1185,7 @@ static void stream_toggle_pause_l(FFPlayer *ffp, int pause_on)
}
#endif
set_clock(&is->vidclk, get_clock(&is->vidclk), is->vidclk.serial);
set_clock(&is->audclk, get_clock(&is->audclk), is->audclk.serial);
} else {
}
set_clock(&is->extclk, get_clock(&is->extclk), is->extclk.serial);
Expand All @@ -1209,6 +1210,10 @@ static void stream_update_pause_l(FFPlayer *ffp)
static void toggle_pause_l(FFPlayer *ffp, int pause_on)
{
VideoState *is = ffp->is;
if (is->pause_req && !pause_on) {
set_clock(&is->vidclk, get_clock(&is->vidclk), is->vidclk.serial);
set_clock(&is->audclk, get_clock(&is->audclk), is->audclk.serial);
}
is->pause_req = pause_on;
ffp->auto_resume = !pause_on;
stream_update_pause_l(ffp);
Expand Down

0 comments on commit 34d5b2e

Please sign in to comment.