+2007-12-13 Sebastian Dröge <slomo@circular-chaos.org>
+
+ * tools/gst-inspect.c: (print_element_properties_info):
+ Add support for GstFraction properties.
+
2007-12-12 Tim-Philipp Müller <tim at centricular dot net>
* Makefile.am:
}
} else if (param->value_type == G_TYPE_VALUE_ARRAY) {
n_print ("%-23.23s Array of GValues", "");
+ } else if (GST_IS_PARAM_SPEC_FRACTION (param)) {
+ GstParamSpecFraction *pfraction = GST_PARAM_SPEC_FRACTION (param);
+
+ n_print ("%-23.23s Fraction. ", "");
+
+ g_print ("Range: %d/%d - %d/%d Default: %d/%d ",
+ pfraction->min_num, pfraction->min_den,
+ pfraction->max_num, pfraction->max_den,
+ pfraction->def_num, pfraction->def_den);
+ if (readable)
+ g_print ("Current: %d/%d",
+ gst_value_get_fraction_numerator (&value),
+ gst_value_get_fraction_denominator (&value));
+
} else {
n_print ("%-23.23s Unknown type %ld \"%s\"", "", param->value_type,
g_type_name (param->value_type));