[MOVED FROM GST-P-FARSIGHT] Pass pad as pad to reset_pad_private

20080514231643-3e2dc-006960b9cdc3ce8e1f890dc6d194778cbc7c9736.gz
This commit is contained in:
Olivier Crete 2008-05-14 23:16:43 +00:00 committed by Edward Hervey
parent 263a914b08
commit df72e5ca58

View file

@ -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;
}