diff options
author | Mark Nauwelaerts <mnauw@users.sourceforge.net> | 2014-02-01 14:40:24 +0100 |
---|---|---|
committer | Mark Nauwelaerts <mnauw@users.sourceforge.net> | 2014-02-01 14:40:45 +0100 |
commit | f86fd7e29e266c1cdf4dd295229810d22a1b5bdb (patch) | |
tree | d8a02a6c9bfed251a33c746e911840d64dc8eb3f /ext | |
parent | 11fa2f88a6a8427e3466a1e3b3fcc917d16f39fb (diff) |
avvidenc: avoid busy-looping when flushing frames
... such as when receiving EOS event.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/libav/gstavvidenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/libav/gstavvidenc.c b/ext/libav/gstavvidenc.c index d1d6d7e..81ebb31 100644 --- a/ext/libav/gstavvidenc.c +++ b/ext/libav/gstavvidenc.c @@ -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); } } |