From 0b7f31b7c2c3972a7f5ec99c6cd8a15de4b5251e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Wed, 2 Jun 2021 20:24:40 +0200 Subject: [PATCH] API: Properly return a boolean instead of a number --- lib/gst/clapper/gstclapper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/gst/clapper/gstclapper.c b/lib/gst/clapper/gstclapper.c index 2ec39444..c64b9379 100644 --- a/lib/gst/clapper/gstclapper.c +++ b/lib/gst/clapper/gstclapper.c @@ -4019,7 +4019,7 @@ gst_clapper_set_audio_track (GstClapper * self, gint stream_index) GstClapperStreamInfo *info; gboolean ret = TRUE; - g_return_val_if_fail (GST_IS_CLAPPER (self), 0); + g_return_val_if_fail (GST_IS_CLAPPER (self), FALSE); g_mutex_lock (&self->lock); info = gst_clapper_stream_info_find (self->media_info, @@ -4060,7 +4060,7 @@ gst_clapper_set_video_track (GstClapper * self, gint stream_index) GstClapperStreamInfo *info; gboolean ret = TRUE; - g_return_val_if_fail (GST_IS_CLAPPER (self), 0); + g_return_val_if_fail (GST_IS_CLAPPER (self), FALSE); /* check if stream_index exist in our internal media_info list */ g_mutex_lock (&self->lock); @@ -4102,7 +4102,7 @@ gst_clapper_set_subtitle_track (GstClapper * self, gint stream_index) GstClapperStreamInfo *info; gboolean ret = TRUE; - g_return_val_if_fail (GST_IS_CLAPPER (self), 0); + g_return_val_if_fail (GST_IS_CLAPPER (self), FALSE); g_mutex_lock (&self->lock); info = gst_clapper_stream_info_find (self->media_info,