diff options
author | Bing Song <bing.song@nxp.com> | 2021-02-04 13:43:17 +0800 |
---|---|---|
committer | Kevin Song <kevinbing.song@gmail.com> | 2021-02-05 00:55:49 +0000 |
commit | 025b43e512c3aadd62096bed07c6e2e79b73e1b3 (patch) | |
tree | d0f412b9c8fa75df627d9964577379d1a7b690ed /sys | |
parent | 61d204ab222089cbe30e40b757ff4a521dad2cc6 (diff) |
v4l2videoenc: support resolution change stream encode.
Resolution change stream transcoding will drain before send new video
frame buffer. Need encode video frame after process EOS.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/868>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/v4l2/gstv4l2videoenc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/v4l2/gstv4l2videoenc.c b/sys/v4l2/gstv4l2videoenc.c index 117d1400a..bc184f04e 100644 --- a/sys/v4l2/gstv4l2videoenc.c +++ b/sys/v4l2/gstv4l2videoenc.c @@ -750,8 +750,10 @@ gst_v4l2_video_enc_handle_frame (GstVideoEncoder * encoder, /* It possible that the processing thread stopped due to an error */ if (self->output_flow != GST_FLOW_OK && - self->output_flow != GST_FLOW_FLUSHING) { - GST_DEBUG_OBJECT (self, "Processing loop stopped with error, leaving"); + self->output_flow != GST_FLOW_FLUSHING && + self->output_flow != GST_FLOW_CUSTOM_SUCCESS) { + GST_DEBUG_OBJECT (self, "Processing loop stopped with error: %s, leaving", + gst_flow_get_name (self->output_flow)); ret = self->output_flow; goto drop; } |