handle the paused case

pull/3074/head
Isaac Connor 2020-10-09 10:21:00 -04:00
parent cb38242917
commit 268e364cfd
1 changed files with 4 additions and 1 deletions

View File

@ -206,7 +206,7 @@ AVFrame *FFmpeg_Input::get_frame(int stream_id, double at) {
if (
(last_seek_request >= 0)
&&
(last_seek_request > seek_target )
(last_seek_request > seek_target)
&&
(frame->pts > seek_target)
) {
@ -221,6 +221,9 @@ AVFrame *FFmpeg_Input::get_frame(int stream_id, double at) {
// Have to grab a frame to update our current frame to know where we are
get_frame(stream_id);
zm_dump_frame(frame, "frame->pts > seek_target, got");
} else if ( last_seek_request == seek_target ) {
// paused case, sending keepalives
return frame;
} // end if frame->pts > seek_target
last_seek_request = seek_target;