From 980f5e17e9c68e843e481bdb032296dfee001d36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 27 Feb 2015 14:28:35 +0000 Subject: [PATCH] tests: pbutils: more checking of returned description strings https://bugzilla.gnome.org/show_bug.cgi?id=673976 --- tests/check/libs/pbutils.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/check/libs/pbutils.c b/tests/check/libs/pbutils.c index 542d022d72..dda8d78397 100644 --- a/tests/check/libs/pbutils.c +++ b/tests/check/libs/pbutils.c @@ -350,6 +350,7 @@ static const gchar *caps_strings[] = { "video/x-h264", "video/x-h264, profile=(string)foobar", "video/x-h264, profile=(string)high-4:4:4-intra", + "video/x-h264, profile=(string)high", "video/x-h263, variant=(string)itu", "video/x-h263, variant=(string)lead", "video/x-h263, variant=(string)microsoft", @@ -419,14 +420,17 @@ GST_START_TEST (test_pb_utils_get_codec_description) desc = gst_pb_utils_get_codec_description (caps); fail_unless (desc != NULL); GST_LOG (" - codec : %s", desc); + fail_unless (g_utf8_validate (desc, -1, NULL)); g_free (desc); desc = gst_pb_utils_get_decoder_description (caps); fail_unless (desc != NULL); GST_LOG (" - decoder : %s", desc); + fail_unless (g_utf8_validate (desc, -1, NULL)); g_free (desc); desc = gst_pb_utils_get_encoder_description (caps); fail_unless (desc != NULL); GST_LOG (" - encoder : %s", desc); + fail_unless (g_utf8_validate (desc, -1, NULL)); g_free (desc); gst_caps_unref (caps); }