MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / stream_toggle_pause

Function stream_toggle_pause

fftools/ffplay.c:1540–1551  ·  view source on GitHub ↗

pause or resume the video */

Source from the content-addressed store, hash-verified

1538
1539/* pause or resume the video */
1540static void stream_toggle_pause(VideoState *is)
1541{
1542 if (is->paused) {
1543 is->frame_timer += av_gettime_relative() / 1000000.0 - is->vidclk.last_updated;
1544 if (is->read_pause_return != AVERROR(ENOSYS)) {
1545 is->vidclk.paused = 0;
1546 }
1547 set_clock(&is->vidclk, get_clock(&is->vidclk), is->vidclk.serial);
1548 }
1549 set_clock(&is->extclk, get_clock(&is->extclk), is->extclk.serial);
1550 is->paused = is->audclk.paused = is->vidclk.paused = is->extclk.paused = !is->paused;
1551}
1552
1553static void toggle_pause(VideoState *is)
1554{

Callers 3

toggle_pauseFunction · 0.85
step_to_next_frameFunction · 0.85
video_refreshFunction · 0.85

Calls 3

av_gettime_relativeFunction · 0.85
set_clockFunction · 0.85
get_clockFunction · 0.85

Tested by

no test coverage detected