[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-stream-transmitter.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/gst-libs/gst/farsight/fs-stream-transmitter.c b/gst-libs/gst/farsight/fs-stream-transmitter.c
index a2de29f..a78cbf7 100644
--- a/gst-libs/gst/farsight/fs-stream-transmitter.c
+++ b/gst-libs/gst/farsight/fs-stream-transmitter.c
@@ -315,6 +315,10 @@ fs_stream_transmitter_get_property (GObject *object,
                                     GValue *value,
                                     GParamSpec *pspec)
 {
+  GST_WARNING ("Subclass %s of FsStreamTransmitter does not override the %s"
+      " property getter",
+      G_OBJECT_TYPE_NAME(object),
+      g_param_spec_get_name (pspec));
 }
 
 static void
@@ -323,6 +327,10 @@ fs_stream_transmitter_set_property (GObject *object,
                                     const GValue *value,
                                     GParamSpec *pspec)
 {
+  GST_WARNING ("Subclass %s of FsStreamTransmitter 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