[farsight2/master] Have property getter/setter for FsTransmitter print a warning if they're not subclassed

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:24:14 PST 2008


---
 gst-libs/gst/farsight/fs-transmitter.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/gst-libs/gst/farsight/fs-transmitter.c b/gst-libs/gst/farsight/fs-transmitter.c
index 7e59b93..bd1e325 100644
--- a/gst-libs/gst/farsight/fs-transmitter.c
+++ b/gst-libs/gst/farsight/fs-transmitter.c
@@ -217,6 +217,10 @@ fs_transmitter_get_property (GObject *object,
                              GValue *value,
                              GParamSpec *pspec)
 {
+  GST_WARNING ("Subclass %s of FsTransmitter does not override the %s property"
+      " getter",
+      G_OBJECT_TYPE_NAME(object),
+      g_param_spec_get_name (pspec));
 }
 
 static void
@@ -225,6 +229,10 @@ fs_transmitter_set_property (GObject *object,
                              const GValue *value,
                              GParamSpec *pspec)
 {
+  GST_WARNING ("Subclass %s of FsTransmitter 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