From c2a5909cd4dc933ad3384339a08bb6ac81af0794 Mon Sep 17 00:00:00 2001 From: Vineeth TM Date: Thu, 23 Jul 2015 11:08:18 +0900 Subject: [PATCH] validate: tools: transcoding error due to wrong condition check when checking the restriction caps, not adding proper check, which results in assertion error when calling gst_caps_from_string https://bugzilla.gnome.org/show_bug.cgi?id=752749 --- validate/tools/gst-validate-transcoding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validate/tools/gst-validate-transcoding.c b/validate/tools/gst-validate-transcoding.c index 04f5895e60..fc43ab5d9f 100644 --- a/validate/tools/gst-validate-transcoding.c +++ b/validate/tools/gst-validate-transcoding.c @@ -598,7 +598,7 @@ _parse_encoding_profile (const gchar * option_name, const gchar * value, encoding_profile = NULL; } - for (i = 1; strcaps_v[i]; i++) { + for (i = 1; strcaps_v[i] && *strcaps_v[i]; i++) { GstEncodingProfile *profile = NULL; gchar *strcaps, *strpresence;