summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2008-10-03 11:32:47 +0000
committerWim Taymans <wim.taymans@gmail.com>2008-10-03 11:32:47 +0000
commit300da1655b180b75783da8f703d3fec85c9ee91c (patch)
tree88e5bef3721e8f506c5e57c1d22a7e4a7d4a4136 /sys
parente2dbf108e6b91a83b66cdd9568c4a27de9ff2bb1 (diff)
sys/v4l2/gstv4l2object.h: Getting the Class from an instance is not just a matter of casting it to the class struct b...
Original commit message from CVS: * sys/v4l2/gstv4l2object.h: Getting the Class from an instance is not just a matter of casting it to the class struct but it involves calling G_OBJECT_GET_CLASS on the instance. Fixes #549784.
Diffstat (limited to 'sys')
-rw-r--r--sys/v4l2/gstv4l2object.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/v4l2/gstv4l2object.h b/sys/v4l2/gstv4l2object.h
index 0c5cdbcb..5eb557ed 100644
--- a/sys/v4l2/gstv4l2object.h
+++ b/sys/v4l2/gstv4l2object.h
@@ -157,7 +157,7 @@ interface_as_function ## _probe_probe_property (GstPropertyProbe * probe,
guint prop_id, \
const GParamSpec * pspec) \
{ \
- Type_Class *this_class = (Type_Class*) probe; \
+ Type_Class *this_class = (Type_Class*) G_OBJECT_GET_CLASS (probe); \
gst_v4l2_probe_probe_property (probe, prop_id, pspec, \
&this_class->v4l2_class_devices); \
} \
@@ -167,7 +167,7 @@ interface_as_function ## _probe_needs_probe (GstPropertyProbe * probe,
guint prop_id, \
const GParamSpec * pspec) \
{ \
- Type_Class *this_class = (Type_Class*) probe; \
+ Type_Class *this_class = (Type_Class*) G_OBJECT_GET_CLASS (probe); \
return gst_v4l2_probe_needs_probe (probe, prop_id, pspec, \
&this_class->v4l2_class_devices); \
} \
@@ -177,7 +177,7 @@ interface_as_function ## _probe_get_values (GstPropertyProbe * probe,
guint prop_id, \
const GParamSpec * pspec) \
{ \
- Type_Class *this_class = (Type_Class*) probe; \
+ Type_Class *this_class = (Type_Class*) G_OBJECT_GET_CLASS (probe); \
return gst_v4l2_probe_get_values (probe, prop_id, pspec, \
&this_class->v4l2_class_devices); \
} \