From de84014440bdc98e7b9131e7aeb3a84c1e8d2ef4 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Tue, 11 Sep 2012 18:35:17 -0400 Subject: ghostpad: Remove unsued parameter flush_hack As a result, remove unused gnl_object_ghost_pad_full. --- gnl/gnlghostpad.c | 13 ++----------- gnl/gnlghostpad.h | 4 ---- gnl/gnloperation.c | 5 ++--- gnl/gnlsource.c | 4 ++-- 4 files changed, 6 insertions(+), 20 deletions(-) diff --git a/gnl/gnlghostpad.c b/gnl/gnlghostpad.c index 4ec1863..1757453 100644 --- a/gnl/gnlghostpad.c +++ b/gnl/gnlghostpad.c @@ -658,16 +658,13 @@ control_internal_pad (GstPad * ghostpad, GnlObject * object) * * Returns: The #GstPad if everything went correctly, else NULL. */ - GstPad * -gnl_object_ghost_pad_full (GnlObject * object, const gchar * name, - GstPad * target, gboolean flush_hack) +gnl_object_ghost_pad (GnlObject * object, const gchar * name, GstPad * target) { GstPadDirection dir = GST_PAD_DIRECTION (target); GstPad *ghost; - GST_DEBUG_OBJECT (object, "name:%s, target:%p, flush_hack:%d", - name, target, flush_hack); + GST_DEBUG_OBJECT (object, "name:%s, target:%p", name, target); g_return_val_if_fail (target, FALSE); g_return_val_if_fail ((dir != GST_PAD_UNKNOWN), FALSE); @@ -697,12 +694,6 @@ gnl_object_ghost_pad_full (GnlObject * object, const gchar * name, return ghost; } -GstPad * -gnl_object_ghost_pad (GnlObject * object, const gchar * name, GstPad * target) -{ - return gnl_object_ghost_pad_full (object, name, target, FALSE); -} - /* * gnl_object_ghost_pad_no_target: * /!\ Doesn't add the pad to the GnlObject.... diff --git a/gnl/gnlghostpad.h b/gnl/gnlghostpad.h index 46182b6..f43ab0d 100644 --- a/gnl/gnlghostpad.h +++ b/gnl/gnlghostpad.h @@ -32,10 +32,6 @@ G_BEGIN_DECLS GstPad *gnl_object_ghost_pad (GnlObject * object, const gchar * name, GstPad * target); -GstPad *gnl_object_ghost_pad_full (GnlObject * object, - const gchar * name, GstPad * target, gboolean flush_hack); - - GstPad *gnl_object_ghost_pad_no_target (GnlObject * object, const gchar * name, GstPadDirection dir); diff --git a/gnl/gnloperation.c b/gnl/gnloperation.c index 7b7adcd..90c3b84 100644 --- a/gnl/gnloperation.c +++ b/gnl/gnloperation.c @@ -378,9 +378,8 @@ gnl_operation_add_element (GstBin * bin, GstElement * element) gnl_object_ghost_pad_set_target (GNL_OBJECT (operation), operation->ghostpad, srcpad); else - operation->ghostpad = - gnl_object_ghost_pad_full (GNL_OBJECT (operation), - GST_PAD_NAME (srcpad), srcpad, TRUE); + operation->ghostpad = gnl_object_ghost_pad (GNL_OBJECT (operation), + GST_PAD_NAME (srcpad), srcpad); /* Remove the reference get_src_pad gave us */ gst_object_unref (srcpad); diff --git a/gnl/gnlsource.c b/gnl/gnlsource.c index 062728e..af9db9b 100644 --- a/gnl/gnlsource.c +++ b/gnl/gnlsource.c @@ -299,8 +299,8 @@ ghost_seek_pad (GnlSource * source) GST_DEBUG_OBJECT (source, "ghosting %s:%s", GST_DEBUG_PAD_NAME (pad)); - priv->ghostpad = gnl_object_ghost_pad_full - ((GnlObject *) source, GST_PAD_NAME (pad), pad, TRUE); + priv->ghostpad = gnl_object_ghost_pad ((GnlObject *) source, + GST_PAD_NAME (pad), pad); GST_DEBUG_OBJECT (source, "emitting no more pads"); gst_pad_set_active (priv->ghostpad, TRUE); -- cgit v1.2.3