From 8e3092661a02e2b5b1b743f5035b85aa70db5345 Mon Sep 17 00:00:00 2001 From: Gianluca Gennari Date: Mon, 8 Oct 2012 10:29:04 +0200 Subject: [PATCH] mpdparser: fixed return with no value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gstmpdparser.c: In function ‘gst_mpdparser_get_list_and_nb_of_audio_language’: gstmpdparser.c:2891: warning: ‘return’ with no value, in function returning non-void --- ext/dash/gstmpdparser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index c73e518084..7f24397a48 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -2887,8 +2887,9 @@ gst_mpdparser_get_list_and_nb_of_audio_language (GList **lang, gchar *this_mimeType = "audio"; gchar *mimeType = NULL; guint nb_adapatation_set = 0; + if (AdaptationSets == NULL) - return; + return 0; for (list = g_list_first (AdaptationSets); list; list = g_list_next (list)) { adapt_set = (GstAdaptationSetNode *) list->data;