[farsight2/master] Have property getter/setter in FsStream base class return an error if the properties are not subclassed
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:24:15 PST 2008
---
gst-libs/gst/farsight/fs-stream.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/gst-libs/gst/farsight/fs-stream.c b/gst-libs/gst/farsight/fs-stream.c
index 9ac6594..fe20e6a 100644
--- a/gst-libs/gst/farsight/fs-stream.c
+++ b/gst-libs/gst/farsight/fs-stream.c
@@ -365,6 +365,10 @@ fs_stream_get_property (GObject *object,
GValue *value,
GParamSpec *pspec)
{
+ GST_WARNING ("Subclass %s of FsStream does not override the %s property"
+ " getter",
+ G_OBJECT_TYPE_NAME(object),
+ g_param_spec_get_name (pspec));
}
static void
@@ -373,6 +377,10 @@ fs_stream_set_property (GObject *object,
const GValue *value,
GParamSpec *pspec)
{
+ GST_WARNING ("Subclass %s of FsStream does not override the %s property"
+ " setter",
+ G_OBJECT_TYPE_NAME(object),
+ g_param_spec_get_name (pspec));
}
/**
--
1.5.6.5
More information about the farsight-commits
mailing list