diff options
author | Edward Hervey <bilboed@bilboed.com> | 2010-10-13 11:52:25 +0200 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2010-10-13 12:05:38 +0200 |
commit | 38122838543bfe458b9e6f98ea44849e8a165ee8 (patch) | |
tree | 5d3cbe8f8e13a7878a7b6872b8be9948d4f7b8d7 | |
parent | aa62c60a6c44114f3f6f0900dd2e85f9ac2a81b1 (diff) |
fdsink: cleanup get_property/set_property
-rw-r--r-- | plugins/elements/gstfdsink.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/elements/gstfdsink.c b/plugins/elements/gstfdsink.c index ad4a29bf8..3389f1f54 100644 --- a/plugins/elements/gstfdsink.c +++ b/plugins/elements/gstfdsink.c @@ -475,8 +475,6 @@ gst_fd_sink_set_property (GObject * object, guint prop_id, { GstFdSink *fdsink; - g_return_if_fail (GST_IS_FD_SINK (object)); - fdsink = GST_FD_SINK (object); switch (prop_id) { @@ -488,6 +486,7 @@ gst_fd_sink_set_property (GObject * object, guint prop_id, break; } default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } @@ -498,8 +497,6 @@ gst_fd_sink_get_property (GObject * object, guint prop_id, GValue * value, { GstFdSink *fdsink; - g_return_if_fail (GST_IS_FD_SINK (object)); - fdsink = GST_FD_SINK (object); switch (prop_id) { @@ -507,6 +504,7 @@ gst_fd_sink_get_property (GObject * object, guint prop_id, GValue * value, g_value_set_int (value, fdsink->fd); break; default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } |