Fix various gboolean vs GstFlowReturn problems
authorNirbheek Chauhan <nirbheek@centricular.com>
Mon, 11 Jul 2016 13:51:11 +0000 (19:21 +0530)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 11 Jul 2016 14:02:06 +0000 (15:02 +0100)
Caught by building with MSVC which gave warnings for these

gst-libs/gst/video/gstvideoaggregator.c
gst/siren/gstsirendec.c

index 9046252..1d40854 100644 (file)
@@ -133,7 +133,7 @@ gst_video_aggregator_pad_set_property (GObject * object, guint prop_id,
   gst_object_unref (vagg);
 }
 
-static gboolean
+static GstFlowReturn
 _flush_pad (GstAggregatorPad * aggpad, GstAggregator * aggregator)
 {
   GstVideoAggregator *vagg = GST_VIDEO_AGGREGATOR (aggregator);
@@ -144,7 +144,7 @@ _flush_pad (GstAggregatorPad * aggpad, GstAggregator * aggregator)
   pad->priv->start_time = -1;
   pad->priv->end_time = -1;
 
-  return TRUE;
+  return GST_FLOW_OK;
 }
 
 static gboolean
index 93aadf0..78338ae 100644 (file)
@@ -57,7 +57,7 @@ static gboolean gst_siren_dec_start (GstAudioDecoder * dec);
 static gboolean gst_siren_dec_stop (GstAudioDecoder * dec);
 static gboolean gst_siren_dec_set_format (GstAudioDecoder * dec,
     GstCaps * caps);
-static gboolean gst_siren_dec_parse (GstAudioDecoder * dec,
+static GstFlowReturn gst_siren_dec_parse (GstAudioDecoder * dec,
     GstAdapter * adapter, gint * offset, gint * length);
 static GstFlowReturn gst_siren_dec_handle_frame (GstAudioDecoder * dec,
     GstBuffer * buffer);