v4l2videodec: Fix drain() function return type
authorSong Bing <bing.song@nxp.com>
Wed, 13 Jun 2018 21:55:29 +0000 (14:55 -0700)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 8 Aug 2019 09:59:41 +0000 (10:59 +0100)
Return right type for drain() function.

sys/v4l2/gstv4l2videodec.c

index 6338884..d408130 100644 (file)
@@ -417,7 +417,7 @@ done:
   return ret;
 }
 
-static gboolean
+static GstFlowReturn
 gst_v4l2_video_dec_drain (GstVideoDecoder * decoder)
 {
   GstV4l2VideoDec *self = GST_V4L2_VIDEO_DEC (decoder);
@@ -426,7 +426,7 @@ gst_v4l2_video_dec_drain (GstVideoDecoder * decoder)
   gst_v4l2_video_dec_finish (decoder);
   gst_v4l2_video_dec_flush (decoder);
 
-  return TRUE;
+  return GST_FLOW_OK;
 }
 
 static GstVideoCodecFrame *