v4l2videoenc: fix type conversion errors

This commit is contained in:
Fuwei Tang 2019-10-11 10:33:20 +08:00
parent 46989dca96
commit 1b752c0fa8

View file

@ -724,7 +724,7 @@ gst_v4l2_video_enc_handle_frame (GstVideoEncoder * encoder,
if (G_UNLIKELY (!g_atomic_int_get (&self->active)))
goto flushing;
task_state = gst_pad_get_task_state (GST_VIDEO_DECODER_SRC_PAD (self));
task_state = gst_pad_get_task_state (GST_VIDEO_ENCODER_SRC_PAD (self));
if (task_state == GST_TASK_STOPPED || task_state == GST_TASK_PAUSED) {
GstBufferPool *pool = GST_BUFFER_POOL (self->v4l2output->pool);