projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa62c60
)
fdsink: cleanup get_property/set_property
author
Edward Hervey
<bilboed@bilboed.com>
Wed, 13 Oct 2010 09:52:25 +0000
(11:52 +0200)
committer
Edward Hervey
<bilboed@bilboed.com>
Wed, 13 Oct 2010 10:05:38 +0000
(12:05 +0200)
plugins/elements/gstfdsink.c
patch
|
blob
|
history
diff --git
a/plugins/elements/gstfdsink.c
b/plugins/elements/gstfdsink.c
index
ad4a29b
..
3389f1f
100644
(file)
--- 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;
}
}