diff options
author | Olivier Crete <olivier.crete@collabora.co.uk> | 2008-05-14 23:16:43 +0000 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2009-02-17 19:29:05 +0100 |
commit | df72e5ca586d3aa472cb7355f007bc32c517710e (patch) | |
tree | 7cc11d4c4491d298546628f5ca8b5978ed6ad0bd /gst | |
parent | 263a914b088586e46955b2b89fb3b4073372270b (diff) | |
download | gst-plugins-bad-df72e5ca586d3aa472cb7355f007bc32c517710e.tar.gz gst-plugins-bad-df72e5ca586d3aa472cb7355f007bc32c517710e.tar.bz2 gst-plugins-bad-df72e5ca586d3aa472cb7355f007bc32c517710e.zip |
[MOVED FROM GST-P-FARSIGHT] Pass pad as pad to reset_pad_private
20080514231643-3e2dc-006960b9cdc3ce8e1f890dc6d194778cbc7c9736.gz
Diffstat (limited to 'gst')
-rw-r--r-- | gst/liveadder/liveadder.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gst/liveadder/liveadder.c b/gst/liveadder/liveadder.c index e5c00b90..8a03a6f1 100644 --- a/gst/liveadder/liveadder.c +++ b/gst/liveadder/liveadder.c @@ -126,6 +126,9 @@ static gboolean gst_live_adder_sink_event (GstPad * pad, GstEvent * event); +static void +reset_pad_private (GstPad *pad); + /* clipping versions */ #define MAKE_FUNC(name,type,ttype,min,max) \ static void name (type *out, type *in, gint bytes) { \ @@ -1327,9 +1330,8 @@ gst_live_adder_release_pad (GstElement * element, GstPad * pad) } static void -reset_pad_private (gpointer data, gpointer unused) +reset_pad_private (GstPad *pad) { - GstPad *pad = data; GstLiveAdderPadPrivate *padprivate; padprivate = gst_pad_get_element_private (pad); @@ -1358,7 +1360,7 @@ gst_live_adder_change_state (GstElement * element, GstStateChange transition) adder->segment_pending = TRUE; adder->peer_latency = 0; adder->next_timestamp = GST_CLOCK_TIME_NONE; - g_list_foreach (adder->sinkpads, reset_pad_private, NULL); + g_list_foreach (adder->sinkpads, (GFunc) reset_pad_private, NULL); GST_OBJECT_UNLOCK (adder); break; } |