mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
tools/gst-inspect.c: Add support for GstFraction properties.
Original commit message from CVS: * tools/gst-inspect.c: (print_element_properties_info): Add support for GstFraction properties.
This commit is contained in:
parent
0ef9a5f5b1
commit
4476243228
3 changed files with 20 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
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:
|
||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit 4f261af78b1128862cb847afb1b7254b8f458834
|
||||
Subproject commit fb7ab03319930496e922173d54f6dfccfff6f357
|
|
@ -545,6 +545,20 @@ print_element_properties_info (GstElement * element)
|
|||
}
|
||||
} 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));
|
||||
|
|
Loading…
Reference in a new issue