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 11:46:58 +0000 (12:46 +0100)
Follow-up to commit 1b752c0f !361

sys/v4l2/gstv4l2videoenc.c

index 973fc7e..36e1515 100644 (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) {