diff options
author | Jan Schmidt <thaytan@mad.scientist.com> | 2005-11-22 12:35:42 +0000 |
---|---|---|
committer | Jan Schmidt <thaytan@mad.scientist.com> | 2005-11-22 12:35:42 +0000 |
commit | 32538f9ed2315c2eb304212bca0809ec258efa06 (patch) | |
tree | b9ec20255d4ceb7447755313a6669e0034fafd04 /gst/gststructure.c | |
parent | 861fb1c1155fc3ee388ab5f28a28db20bd3a6789 (diff) |
check/gst/capslist.h: Comment test cases
Original commit message from CVS:
* check/gst/capslist.h:
Comment test cases
* check/gst/gststructure.c: (GST_START_TEST),
(gst_structure_suite):
Test automatic value type detection in gst_structure_from_string.
* gst/gststructure.c: (gst_structure_parse_value):
Add fraction as a type we try and guess automatically in
caps/structure strings.
Diffstat (limited to 'gst/gststructure.c')
-rw-r--r-- | gst/gststructure.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/gststructure.c b/gst/gststructure.c index 5141caba8..f09d81751 100644 --- a/gst/gststructure.c +++ b/gst/gststructure.c @@ -1633,7 +1633,8 @@ gst_structure_parse_value (gchar * str, c = *value_end; *value_end = 0; if (type == G_TYPE_INVALID) { - GType try_types[] = { G_TYPE_INT, G_TYPE_DOUBLE, G_TYPE_STRING }; + GType try_types[] = + { G_TYPE_INT, G_TYPE_DOUBLE, GST_TYPE_FRACTION, G_TYPE_STRING }; int i; for (i = 0; i < 3; i++) { |