summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2011-04-14 19:53:16 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2011-04-15 00:24:47 +0100
commitfb0222ea67322a4e743593a3ed6741571d5aede7 (patch)
treee2042364b0b96ac4b5a632e040552828c0af2dd3 /tools
parent6f045cb4d851cbe2292c44dc51a1b54b26288cee (diff)
element-templates: clean up gobject template a bit
Remove pointless g_return_if_fail (G_IS_FOO (obj)) checks in vfunc implementations. Comment out unused variables to avoid warnings with gcc 4.6.
Diffstat (limited to 'tools')
-rw-r--r--tools/element-templates/gobject20
1 files changed, 4 insertions, 16 deletions
diff --git a/tools/element-templates/gobject b/tools/element-templates/gobject
index 4ef34e6c2..18183feaf 100644
--- a/tools/element-templates/gobject
+++ b/tools/element-templates/gobject
@@ -23,10 +23,7 @@ void
gst_replace_set_property (GObject * object, guint property_id,
const GValue * value, GParamSpec * pspec)
{
- GstReplace *replace;
-
- g_return_if_fail (GST_IS_REPLACE (object));
- replace = GST_REPLACE (object);
+ /* GstReplace *replace = GST_REPLACE (object); */
switch (property_id) {
default:
@@ -39,10 +36,7 @@ void
gst_replace_get_property (GObject * object, guint property_id,
GValue * value, GParamSpec * pspec)
{
- GstReplace *replace;
-
- g_return_if_fail (GST_IS_REPLACE (object));
- replace = GST_REPLACE (object);
+ /* GstReplace *replace = GST_REPLACE (object); */
switch (property_id) {
default:
@@ -54,10 +48,7 @@ gst_replace_get_property (GObject * object, guint property_id,
void
gst_replace_dispose (GObject * object)
{
- GstReplace *replace;
-
- g_return_if_fail (GST_IS_REPLACE (object));
- replace = GST_REPLACE (object);
+ /* GstReplace *replace = GST_REPLACE (object); */
/* clean up as possible. may be called multiple times */
@@ -67,10 +58,7 @@ gst_replace_dispose (GObject * object)
void
gst_replace_finalize (GObject * object)
{
- GstReplace *replace;
-
- g_return_if_fail (GST_IS_REPLACE (object));
- replace = GST_REPLACE (object);
+ /* GstReplace *replace = GST_REPLACE (object); */
/* clean up object here */