[Nice] [nice/master] Print warning on invalid property

Olivier Crete olivier.crete at collabora.co.uk
Wed Nov 5 14:00:56 PST 2008


darcs-hash:20080403225624-3e2dc-2c1e69eef8f2c620b654ee519e737b63047c55ce.gz
---
 gst/gstnicesink.c |    8 ++++++++
 gst/gstnicesrc.c  |    8 ++++++++
 2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/gst/gstnicesink.c b/gst/gstnicesink.c
index 77d6ba0..04f7fa1 100644
--- a/gst/gstnicesink.c
+++ b/gst/gstnicesink.c
@@ -176,6 +176,10 @@ gst_nice_sink_set_property (
     case PROP_COMPONENT:
       sink->component_id = g_value_get_uint (value);
       break;
+
+    default:
+      G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+      break;
     }
 }
 
@@ -201,6 +205,10 @@ gst_nice_sink_get_property (
     case PROP_COMPONENT:
       g_value_set_uint (value, sink->component_id);
       break;
+
+    default:
+      G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+      break;
     }
 }
 
diff --git a/gst/gstnicesrc.c b/gst/gstnicesrc.c
index 96e20e8..3dab030 100644
--- a/gst/gstnicesrc.c
+++ b/gst/gstnicesrc.c
@@ -195,6 +195,10 @@ gst_nice_src_set_property (
     case PROP_COMPONENT:
       src->component_id = g_value_get_uint (value);
       break;
+
+    default:
+      G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+      break;
     }
 }
 
@@ -220,6 +224,10 @@ gst_nice_src_get_property (
     case PROP_COMPONENT:
       g_value_set_uint (value, src->component_id);
       break;
+
+    default:
+      G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+      break;
     }
 }
 
-- 
1.5.6.5




More information about the Nice mailing list