diff options
author | Florin Apostol <florin.apostol@oregan.net> | 2015-06-18 16:20:26 +0100 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-06-18 12:40:01 -0300 |
commit | d268f812eb616666251bc689a1e823ee4ed89e3a (patch) | |
tree | e720bb71374ae779db21541379705395e3538089 | |
parent | e4d6e96c820b7a73d585cd174aca46b3aef8b885 (diff) |
dashdemux: added warnings in gst_mpd_client_setup_streaming function
Added some warning messages in gst_mpd_client_setup_streaming to help
debug situations when the function will return FALSE.
Renamed a wrongly spelled variable.
https://bugzilla.gnome.org/show_bug.cgi?id=751149
-rw-r--r-- | ext/dash/gstmpdparser.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index b658126fe..482326828 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -3539,13 +3539,16 @@ gst_mpd_client_setup_streaming (GstMpdClient * client, stream->mimeType = gst_mpdparser_representation_get_mimetype (adapt_set, representation); if (stream->mimeType == GST_STREAM_UNKNOWN) { + GST_WARNING ("Unknown mime type in the representation, aborting..."); g_slice_free (GstActiveStream, stream); return FALSE; } client->active_streams = g_list_append (client->active_streams, stream); - if (!gst_mpd_client_setup_representation (client, stream, representation)) + if (!gst_mpd_client_setup_representation (client, stream, representation)) { + GST_WARNING ("Failed to setup the representation, aborting..."); return FALSE; + } GST_INFO ("Successfully setup the download pipeline for mimeType %d", stream->mimeType); @@ -4419,7 +4422,7 @@ gst_mpdparser_get_list_and_nb_of_audio_language (GstMpdClient * client, GList *list; const gchar *this_mimeType = "audio"; gchar *mimeType = NULL; - guint nb_adapatation_set = 0; + guint nb_adaptation_set = 0; stream_period = gst_mpdparser_get_stream_period (client); g_return_val_if_fail (stream_period != NULL, 0); @@ -4441,14 +4444,14 @@ gst_mpdparser_get_list_and_nb_of_audio_language (GstMpdClient * client, if (strncmp_ext (mimeType, this_mimeType) == 0) { if (this_lang) { - nb_adapatation_set++; + nb_adaptation_set++; *lang = g_list_append (*lang, this_lang); } } } } - return nb_adapatation_set; + return nb_adaptation_set; } |