mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
gst/elements/gsttee.c: Let's not iterate pads we're not interested in, it avoids getting sky-high refcounts on sinkpad.
Original commit message from CVS: * gst/elements/gsttee.c: (gst_tee_do_push), (gst_tee_handle_buffer): Let's not iterate pads we're not interested in, it avoids getting sky-high refcounts on sinkpad.
This commit is contained in:
parent
93823de17e
commit
6fcaf333b1
3 changed files with 8 additions and 8 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-09-30 Edward Hervey <edward@fluendo.com>
|
||||
|
||||
* gst/elements/gsttee.c: (gst_tee_do_push), (gst_tee_handle_buffer):
|
||||
Let's not iterate pads we're not interested in, it avoids getting
|
||||
sky-high refcounts on sinkpad.
|
||||
|
||||
2005-09-30 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst/gstelement.c: (gst_element_set_state),
|
||||
|
|
|
@ -260,9 +260,6 @@ gst_tee_do_push (GstPad * pad, GValue * ret, PushData * data)
|
|||
{
|
||||
GstFlowReturn res;
|
||||
|
||||
if (GST_PAD_DIRECTION (pad) != GST_PAD_SRC || !GST_PAD_IS_USABLE (pad))
|
||||
return TRUE;
|
||||
|
||||
if (G_UNLIKELY (!data->tee->silent)) {
|
||||
GstTee *tee = data->tee;
|
||||
GstBuffer *buf = data->buffer;
|
||||
|
@ -293,7 +290,7 @@ gst_tee_handle_buffer (GstTee * tee, GstBuffer * buffer)
|
|||
tee->offset += GST_BUFFER_SIZE (buffer);
|
||||
|
||||
g_value_init (&ret, GST_TYPE_FLOW_RETURN);
|
||||
iter = gst_element_iterate_pads (GST_ELEMENT (tee));
|
||||
iter = gst_element_iterate_src_pads (GST_ELEMENT (tee));
|
||||
data.tee = tee;
|
||||
data.buffer = buffer;
|
||||
|
||||
|
|
|
@ -260,9 +260,6 @@ gst_tee_do_push (GstPad * pad, GValue * ret, PushData * data)
|
|||
{
|
||||
GstFlowReturn res;
|
||||
|
||||
if (GST_PAD_DIRECTION (pad) != GST_PAD_SRC || !GST_PAD_IS_USABLE (pad))
|
||||
return TRUE;
|
||||
|
||||
if (G_UNLIKELY (!data->tee->silent)) {
|
||||
GstTee *tee = data->tee;
|
||||
GstBuffer *buf = data->buffer;
|
||||
|
@ -293,7 +290,7 @@ gst_tee_handle_buffer (GstTee * tee, GstBuffer * buffer)
|
|||
tee->offset += GST_BUFFER_SIZE (buffer);
|
||||
|
||||
g_value_init (&ret, GST_TYPE_FLOW_RETURN);
|
||||
iter = gst_element_iterate_pads (GST_ELEMENT (tee));
|
||||
iter = gst_element_iterate_src_pads (GST_ELEMENT (tee));
|
||||
data.tee = tee;
|
||||
data.buffer = buffer;
|
||||
|
||||
|
|
Loading…
Reference in a new issue