mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
avvidenc: avoid busy-looping when flushing frames
... such as when receiving EOS event.
This commit is contained in:
parent
11fa2f88a6
commit
f86fd7e29e
1 changed files with 2 additions and 1 deletions
|
@ -689,7 +689,8 @@ gst_ffmpegvidenc_flush_buffers (GstFFMpegVidEnc * ffmpegenc, gboolean send)
|
|||
flow_ret =
|
||||
gst_video_encoder_finish_frame (GST_VIDEO_ENCODER (ffmpegenc), frame);
|
||||
} else {
|
||||
gst_video_codec_frame_unref (frame);
|
||||
/* no frame attached, so will be skipped and removed from frame list */
|
||||
gst_video_encoder_finish_frame (GST_VIDEO_ENCODER (ffmpegenc), frame);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue