[MOVED FROM GST-P-FARSIGHT] Pass pad as pad to reset_pad_private
20080514231643-3e2dc-006960b9cdc3ce8e1f890dc6d194778cbc7c9736.gz
This commit is contained in:
parent
263a914b08
commit
df72e5ca58
@ -126,6 +126,9 @@ static gboolean
|
|||||||
gst_live_adder_sink_event (GstPad * pad, GstEvent * event);
|
gst_live_adder_sink_event (GstPad * pad, GstEvent * event);
|
||||||
|
|
||||||
|
|
||||||
|
static void
|
||||||
|
reset_pad_private (GstPad *pad);
|
||||||
|
|
||||||
/* clipping versions */
|
/* clipping versions */
|
||||||
#define MAKE_FUNC(name,type,ttype,min,max) \
|
#define MAKE_FUNC(name,type,ttype,min,max) \
|
||||||
static void name (type *out, type *in, gint bytes) { \
|
static void name (type *out, type *in, gint bytes) { \
|
||||||
@ -1327,9 +1330,8 @@ gst_live_adder_release_pad (GstElement * element, GstPad * pad)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
reset_pad_private (gpointer data, gpointer unused)
|
reset_pad_private (GstPad *pad)
|
||||||
{
|
{
|
||||||
GstPad *pad = data;
|
|
||||||
GstLiveAdderPadPrivate *padprivate;
|
GstLiveAdderPadPrivate *padprivate;
|
||||||
|
|
||||||
padprivate = gst_pad_get_element_private (pad);
|
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->segment_pending = TRUE;
|
||||||
adder->peer_latency = 0;
|
adder->peer_latency = 0;
|
||||||
adder->next_timestamp = GST_CLOCK_TIME_NONE;
|
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);
|
GST_OBJECT_UNLOCK (adder);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user