17 #include "propertyprobe.h"
18 #include <gst/interfaces/propertyprobe.h>
22 QList<QGlib::ParamSpecPtr> PropertyProbe::properties()
const
24 QList<QGlib::ParamSpecPtr> result;
25 const GList *list = gst_property_probe_get_properties(object<GstPropertyProbe>());
35 const GList *list = gst_property_probe_get_properties(object<GstPropertyProbe>());
37 GParamSpec *param = G_PARAM_SPEC(list->data);
38 if (param == property) {
46 bool PropertyProbe::propertySupportsProbe(
const char *property)
const
48 const GParamSpec *param = gst_property_probe_get_property(object<GstPropertyProbe>(), property);
54 return gst_property_probe_needs_probe(object<GstPropertyProbe>(), property);
57 bool PropertyProbe::needsProbe(
const char *property)
const
59 return gst_property_probe_needs_probe_name(object<GstPropertyProbe>(), property);
64 gst_property_probe_probe_property(object<GstPropertyProbe>(), property);
67 void PropertyProbe::probe(
const char *property)
69 gst_property_probe_probe_property_name(object<GstPropertyProbe>(), property);
72 static QList<QGlib::Value> valueArrayToList(GValueArray *array)
74 QList<QGlib::Value> result;
76 for(uint i = 0; i < array->n_values; ++i) {
77 const GValue *v = g_value_array_get_nth(array, i);
80 g_value_array_free(array);
87 GValueArray *array = gst_property_probe_get_values(object<GstPropertyProbe>(), property);
88 return valueArrayToList(array);
91 QList<QGlib::Value> PropertyProbe::values(
const char *property)
const
93 GValueArray *array = gst_property_probe_get_values_name(object<GstPropertyProbe>(), property);
94 return valueArrayToList(array);
99 GValueArray *array = gst_property_probe_probe_and_get_values(object<GstPropertyProbe>(), property);
100 return valueArrayToList(array);
103 QList<QGlib::Value> PropertyProbe::probeAndGetValues(
const char *property)
105 GValueArray *array = gst_property_probe_probe_and_get_values_name(object<GstPropertyProbe>(), property);
106 return valueArrayToList(array);