v4l2videoenc: fix wrong type cast

Follow-up to commit 1b752c0f !361
This commit is contained in:
Tim-Philipp Müller 2019-10-13 12:46:58 +01:00
parent 9dcb626e3a
commit 6e8e3910d3

View file

@ -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) {