mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
Apply 1 suggestion(s) to 1 file(s)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/868>
This commit is contained in:
parent
fd6c296021
commit
c63ff9c06c
1 changed files with 2 additions and 1 deletions
|
@ -748,7 +748,8 @@ gst_v4l2_video_enc_handle_frame (GstVideoEncoder * encoder,
|
||||||
if (task_state == GST_TASK_STOPPED || task_state == GST_TASK_PAUSED) {
|
if (task_state == GST_TASK_STOPPED || task_state == GST_TASK_PAUSED) {
|
||||||
GstBufferPool *pool = GST_BUFFER_POOL (self->v4l2output->pool);
|
GstBufferPool *pool = GST_BUFFER_POOL (self->v4l2output->pool);
|
||||||
|
|
||||||
/* It possible that the processing thread stopped due to an error */
|
/* It is possible that the processing thread stopped due to an error or
|
||||||
|
* when the last buffer has been met during the draining process. */
|
||||||
if (self->output_flow != GST_FLOW_OK &&
|
if (self->output_flow != GST_FLOW_OK &&
|
||||||
self->output_flow != GST_FLOW_FLUSHING &&
|
self->output_flow != GST_FLOW_FLUSHING &&
|
||||||
self->output_flow != GST_V4L2_FLOW_LAST_BUFFER) {
|
self->output_flow != GST_V4L2_FLOW_LAST_BUFFER) {
|
||||||
|
|
Loading…
Reference in a new issue