summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorin Apostol <florin.apostol@oregan.net>2015-06-15 17:30:26 +0100
committerSebastian Dröge <sebastian@centricular.com>2015-06-24 12:22:44 +0200
commitb8cb37f04deee3e079ef765ef838d150a3feb1e8 (patch)
tree20ae39c87fc23459307521b37298a2d255944249
parentd02f9d30af0191835f24a514360bd9045f7feeb8 (diff)
tests: dashdemux: added explicit type conversions
flexelint (http://www.gimpel.com/html/flex.htm) static code analyser complained about implicit conversions from unsigned to signed, so I added explicit conversions. Ideally, the size parameter of gst_mpd_parse function should be unsigned, but I don't want to change the API.
-rw-r--r--tests/check/elements/dash_mpd.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/check/elements/dash_mpd.c b/tests/check/elements/dash_mpd.c
index 2b5015898..9eec34500 100644
--- a/tests/check/elements/dash_mpd.c
+++ b/tests/check/elements/dash_mpd.c
@@ -58,7 +58,7 @@ GST_START_TEST (dash_mpdparser_validsimplempd)
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
- ret = gst_mpd_parse (mpdclient, xml, strlen (xml));
+ ret = gst_mpd_parse (mpdclient, xml, (gint) strlen (xml));
assert_equals_int (ret, TRUE);
/* check that unset elements with default values are properly configured */
@@ -99,7 +99,7 @@ GST_START_TEST (dash_mpdparser_mpd)
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
- ret = gst_mpd_parse (mpdclient, xml, strlen (xml));
+ ret = gst_mpd_parse (mpdclient, xml, (gint) strlen (xml));
assert_equals_int (ret, TRUE);
@@ -175,7 +175,7 @@ GST_START_TEST (dash_mpdparser_program_information)
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
- ret = gst_mpd_parse (mpdclient, xml, strlen (xml));
+ ret = gst_mpd_parse (mpdclient, xml, (gint) strlen (xml));
assert_equals_int (ret, TRUE);
program =
@@ -208,7 +208,7 @@ GST_START_TEST (dash_mpdparser_base_URL)
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
- ret = gst_mpd_parse (mpdclient, xml, strlen (xml));
+ ret = gst_mpd_parse (mpdclient, xml, (gint) strlen (xml));
assert_equals_int (ret, TRUE);
baseURL = (GstBaseURL *) mpdclient->mpd_node->BaseURLs->data;
@@ -237,7 +237,7 @@ GST_START_TEST (dash_mpdparser_location)
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
- ret = gst_mpd_parse (mpdclient, xml, strlen (xml));
+ ret = gst_mpd_parse (mpdclient, xml, (gint) strlen (xml));
assert_equals_int (ret, TRUE);
location = (gchar *) mpdclient->mpd_node->Locations->data;
@@ -264,7 +264,7 @@ GST_START_TEST (dash_mpdparser_metrics)
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
- ret = gst_mpd_parse (mpdclient, xml, strlen (xml));
+ ret = gst_mpd_parse (mpdclient, xml, (gint) strlen (xml));
assert_equals_int (ret, TRUE);
metricsNode = (GstMetricsNode *) mpdclient->mpd_node->Metrics->data;
@@ -292,7 +292,7 @@ GST_START_TEST (dash_mpdparser_metrics_range)
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
- ret = gst_mpd_parse (mpdclient, xml, strlen (xml));
+ ret = gst_mpd_parse (mpdclient, xml, (gint) strlen (xml));
assert_equals_int (ret, TRUE);
metricsNode = (GstMetricsNode *) mpdclient->mpd_node->Metrics->data;
@@ -324,7 +324,7 @@ GST_START_TEST (dash_mpdparser_metrics_reporting)
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
- ret = gst_mpd_parse (mpdclient, xml, strlen (xml));
+ ret = gst_mpd_parse (mpdclient, xml, (gint) strlen (xml));
assert_equals_int (ret, TRUE);
metricsNode = (GstMetricsNode *) mpdclient->mpd_node->Metrics->data;
@@ -2115,7 +2115,7 @@ GST_START_TEST (dash_mpdparser_type_dynamic)
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
- ret = gst_mpd_parse (mpdclient, xml, strlen (xml));
+ ret = gst_mpd_parse (mpdclient, xml, (gint) strlen (xml));
assert_equals_int (ret, TRUE);
assert_equals_int (mpdclient->mpd_node->type, GST_MPD_FILE_TYPE_DYNAMIC);
@@ -2202,7 +2202,7 @@ GST_START_TEST (dash_mpdparser_missing_xml)
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
- ret = gst_mpd_parse (mpdclient, xml, strlen (xml));
+ ret = gst_mpd_parse (mpdclient, xml, (gint) strlen (xml));
assert_equals_int (ret, FALSE);
@@ -2222,7 +2222,7 @@ GST_START_TEST (dash_mpdparser_missing_mpd)
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
- ret = gst_mpd_parse (mpdclient, xml, strlen (xml));
+ ret = gst_mpd_parse (mpdclient, xml, (gint) strlen (xml));
assert_equals_int (ret, FALSE);
@@ -2244,7 +2244,7 @@ GST_START_TEST (dash_mpdparser_no_end_tag)
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
- ret = gst_mpd_parse (mpdclient, xml, strlen (xml));
+ ret = gst_mpd_parse (mpdclient, xml, (gint) strlen (xml));
assert_equals_int (ret, FALSE);