From: Tim-Philipp Müller Date: Fri, 5 Sep 2008 19:04:47 +0000 (+0000) Subject: gst-libs/gst/interfaces/propertyprobe.c: More sanity checks for our second-favourite... X-Git-Tag: 1.19.3~511^2~10285 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5a176bb6c9f60b598d04f553aa181bb1391c874;p=platform%2Fupstream%2Fgstreamer.git gst-libs/gst/interfaces/propertyprobe.c: More sanity checks for our second-favourite interface. Original commit message from CVS: * gst-libs/gst/interfaces/propertyprobe.c: (gst_property_probe_get_properties), (gst_property_probe_get_property), (gst_property_probe_probe_property), (gst_property_probe_probe_property_name), (gst_property_probe_needs_probe), (gst_property_probe_needs_probe_name), (gst_property_probe_get_values), (gst_property_probe_get_values_name), (gst_property_probe_probe_and_get_values), (gst_property_probe_probe_and_get_values_name): More sanity checks for our second-favourite interface. --- diff --git a/ChangeLog b/ChangeLog index 2f760d2..f2f20a1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,18 @@ +2008-09-05 Tim-Philipp Müller + + * gst-libs/gst/interfaces/propertyprobe.c: + (gst_property_probe_get_properties), + (gst_property_probe_get_property), + (gst_property_probe_probe_property), + (gst_property_probe_probe_property_name), + (gst_property_probe_needs_probe), + (gst_property_probe_needs_probe_name), + (gst_property_probe_get_values), + (gst_property_probe_get_values_name), + (gst_property_probe_probe_and_get_values), + (gst_property_probe_probe_and_get_values_name): + More sanity checks for our second-favourite interface. + 2008-09-05 Stefan Kost * gst-libs/gst/interfaces/propertyprobe.c: diff --git a/gst-libs/gst/interfaces/propertyprobe.c b/gst-libs/gst/interfaces/propertyprobe.c index 009e961..5d282fe 100644 --- a/gst-libs/gst/interfaces/propertyprobe.c +++ b/gst-libs/gst/interfaces/propertyprobe.c @@ -114,6 +114,7 @@ gst_property_probe_get_properties (GstPropertyProbe * probe) GstPropertyProbeInterface *iface; g_return_val_if_fail (probe != NULL, NULL); + g_return_val_if_fail (GST_IS_PROPERTY_PROBE (probe), NULL); iface = GST_PROPERTY_PROBE_GET_IFACE (probe); @@ -135,11 +136,14 @@ gst_property_probe_get_properties (GstPropertyProbe * probe) const GParamSpec * gst_property_probe_get_property (GstPropertyProbe * probe, const gchar * name) { - const GList *pspecs = gst_property_probe_get_properties (probe); + const GList *pspecs; g_return_val_if_fail (probe != NULL, NULL); + g_return_val_if_fail (GST_IS_PROPERTY_PROBE (probe), NULL); g_return_val_if_fail (name != NULL, NULL); + pspecs = gst_property_probe_get_properties (probe); + while (pspecs) { const GParamSpec *pspec = pspecs->data; @@ -170,6 +174,7 @@ gst_property_probe_probe_property (GstPropertyProbe * probe, GstPropertyProbeInterface *iface; g_return_if_fail (probe != NULL); + g_return_if_fail (GST_IS_PROPERTY_PROBE (probe)); g_return_if_fail (pspec != NULL); iface = GST_PROPERTY_PROBE_GET_IFACE (probe); @@ -192,6 +197,7 @@ gst_property_probe_probe_property_name (GstPropertyProbe * probe, const GParamSpec *pspec; g_return_if_fail (probe != NULL); + g_return_if_fail (GST_IS_PROPERTY_PROBE (probe)); g_return_if_fail (name != NULL); pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (probe), name); @@ -223,6 +229,7 @@ gst_property_probe_needs_probe (GstPropertyProbe * probe, GstPropertyProbeInterface *iface; g_return_val_if_fail (probe != NULL, FALSE); + g_return_val_if_fail (GST_IS_PROPERTY_PROBE (probe), FALSE); g_return_val_if_fail (pspec != NULL, FALSE); iface = GST_PROPERTY_PROBE_GET_IFACE (probe); @@ -249,6 +256,7 @@ gst_property_probe_needs_probe_name (GstPropertyProbe * probe, const GParamSpec *pspec; g_return_val_if_fail (probe != NULL, FALSE); + g_return_val_if_fail (GST_IS_PROPERTY_PROBE (probe), FALSE); g_return_val_if_fail (name != NULL, FALSE); pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (probe), name); @@ -277,6 +285,7 @@ gst_property_probe_get_values (GstPropertyProbe * probe, GstPropertyProbeInterface *iface; g_return_val_if_fail (probe != NULL, NULL); + g_return_val_if_fail (GST_IS_PROPERTY_PROBE (probe), NULL); g_return_val_if_fail (pspec != NULL, NULL); iface = GST_PROPERTY_PROBE_GET_IFACE (probe); @@ -303,6 +312,7 @@ gst_property_probe_get_values_name (GstPropertyProbe * probe, const GParamSpec *pspec; g_return_val_if_fail (probe != NULL, NULL); + g_return_val_if_fail (GST_IS_PROPERTY_PROBE (probe), NULL); g_return_val_if_fail (name != NULL, NULL); pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (probe), name); @@ -332,6 +342,7 @@ gst_property_probe_probe_and_get_values (GstPropertyProbe * probe, GstPropertyProbeInterface *iface; g_return_val_if_fail (probe != NULL, NULL); + g_return_val_if_fail (GST_IS_PROPERTY_PROBE (probe), NULL); g_return_val_if_fail (pspec != NULL, NULL); iface = GST_PROPERTY_PROBE_GET_IFACE (probe); @@ -358,6 +369,7 @@ gst_property_probe_probe_and_get_values_name (GstPropertyProbe * probe, const GParamSpec *pspec; g_return_val_if_fail (probe != NULL, NULL); + g_return_val_if_fail (GST_IS_PROPERTY_PROBE (probe), NULL); g_return_val_if_fail (name != NULL, NULL); pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (probe), name);