summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVineeth TM <vineeth.tm@samsung.com>2015-07-23 11:08:18 +0900
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2015-08-05 17:19:24 -0400
commitc2a5909cd4dc933ad3384339a08bb6ac81af0794 (patch)
tree02fa3d05dbbae8dcb4a01f1f45ec6c8d3fab6de6
parente4d490fd45ca3acdd4749bc44042287dec11bc09 (diff)
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
-rw-r--r--validate/tools/gst-validate-transcoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/validate/tools/gst-validate-transcoding.c b/validate/tools/gst-validate-transcoding.c
index 04f5895..fc43ab5 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;