From 6e8e3910d32502702400d76b32c521e1e85f09e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 13 Oct 2019 12:46:58 +0100 Subject: [PATCH] v4l2videoenc: fix wrong type cast Follow-up to commit 1b752c0f !361 --- sys/v4l2/gstv4l2videoenc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/v4l2/gstv4l2videoenc.c b/sys/v4l2/gstv4l2videoenc.c index 973fc7e9a4..36e1515adc 100644 --- a/sys/v4l2/gstv4l2videoenc.c +++ b/sys/v4l2/gstv4l2videoenc.c @@ -776,8 +776,7 @@ gst_v4l2_video_enc_handle_frame (GstVideoEncoder * encoder, GST_VIDEO_ENCODER_STREAM_LOCK (encoder); if (ret == GST_FLOW_FLUSHING) { - if (gst_pad_get_task_state (GST_VIDEO_DECODER_SRC_PAD (self)) != - GST_TASK_STARTED) + if (gst_pad_get_task_state (encoder->srcpad) != GST_TASK_STARTED) ret = self->output_flow; goto drop; } else if (ret != GST_FLOW_OK) {