mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
valve: no need to ref the object in _chain
Don't ref the pad in chain, like elsewhere
This commit is contained in:
parent
2d699010e9
commit
7ae63847a8
1 changed files with 1 additions and 3 deletions
|
@ -180,7 +180,7 @@ gst_valve_get_property (GObject * object,
|
|||
static GstFlowReturn
|
||||
gst_valve_chain (GstPad * pad, GstBuffer * buffer)
|
||||
{
|
||||
GstValve *valve = GST_VALVE (gst_pad_get_parent_element (pad));
|
||||
GstValve *valve = GST_VALVE (GST_OBJECT_PARENT (pad));
|
||||
GstFlowReturn ret = GST_FLOW_OK;
|
||||
|
||||
if (g_atomic_int_get (&valve->drop)) {
|
||||
|
@ -202,8 +202,6 @@ gst_valve_chain (GstPad * pad, GstBuffer * buffer)
|
|||
if (g_atomic_int_get (&valve->drop))
|
||||
ret = GST_FLOW_OK;
|
||||
|
||||
gst_object_unref (valve);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue