v4l2videoenc: fix wrong type cast
authorTim-Philipp Müller <tim@centricular.com>
Sun, 13 Oct 2019 11:46:58 +0000 (12:46 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 13 Oct 2019 15:55:13 +0000 (16:55 +0100)
Follow-up to commit 1b752c0f !361

sys/v4l2/gstv4l2videoenc.c

index 7c17c74..379cc83 100644 (file)
@@ -772,8 +772,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) {