v4l2videodec: Fix drain() function return type
authorSong Bing <bing.song@nxp.com>
Wed, 13 Jun 2018 21:55:29 +0000 (14:55 -0700)
committerNicolas Dufresne <nicolas@ndufresne.ca>
Mon, 24 Jun 2019 14:43:21 +0000 (14:43 +0000)
Return right type for drain() function.

sys/v4l2/gstv4l2videodec.c

index 99a04e3..bb02f2e 100644 (file)
@@ -424,7 +424,7 @@ done:
   return ret;
 }
 
-static gboolean
+static GstFlowReturn
 gst_v4l2_video_dec_drain (GstVideoDecoder * decoder)
 {
   GstV4l2VideoDec *self = GST_V4L2_VIDEO_DEC (decoder);
@@ -433,7 +433,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 *