handle the paused case
parent
cb38242917
commit
268e364cfd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue