summaryrefslogtreecommitdiff
path: root/gst/gststructure.c
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2005-11-22 11:56:01 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2005-11-22 11:56:01 +0000
commitba0d715dc8f38f066556d5908d22c5d00389b604 (patch)
treec73c5e995c3eaa58e2edaa4bfcb3cfd7df116b91 /gst/gststructure.c
parent48d1473e3df261e9507dde3b4715ebdafbdc626f (diff)
check/gst/gstcaps.c: Extend caps string tests to check that a caps to string conversion is reversible and produces th...
Original commit message from CVS: * check/gst/gstcaps.c: (GST_START_TEST): Extend caps string tests to check that a caps to string conversion is reversible and produces the same caps. * gst/gststructure.c: (gst_structure_value_get_generic_type): Output "fraction" as the generic type fraction range, so caps serialisation and deserialisation works. * check/gst/capslist.h: * gst/gstvalue.c: (gst_value_deserialize_fraction): Support 'MIN' and 'MAX' for deserialising fractions.
Diffstat (limited to 'gst/gststructure.c')
-rw-r--r--gst/gststructure.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/gststructure.c b/gst/gststructure.c
index 23f728c2d..5141caba8 100644
--- a/gst/gststructure.c
+++ b/gst/gststructure.c
@@ -1286,6 +1286,8 @@ gst_structure_value_get_generic_type (GValue * val)
return G_TYPE_INT;
} else if (G_VALUE_TYPE (val) == GST_TYPE_DOUBLE_RANGE) {
return G_TYPE_DOUBLE;
+ } else if (G_VALUE_TYPE (val) == GST_TYPE_FRACTION_RANGE) {
+ return GST_TYPE_FRACTION;
}
return G_VALUE_TYPE (val);
}