projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
284b9f0
)
valve: no need to ref the object in _chain
author
Stefan Kost
<ensonic@users.sf.net>
Tue, 28 Sep 2010 10:52:29 +0000
(13:52 +0300)
committer
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Fri, 31 Dec 2010 00:51:12 +0000
(
00:51
+0000)
Don't ref the pad in chain, like elsewhere
plugins/elements/gstvalve.c
patch
|
blob
|
history
diff --git
a/plugins/elements/gstvalve.c
b/plugins/elements/gstvalve.c
index 4192074e5f155fd3c1447155acee82c2fe3ff003..977a4afa024d5ecbae09ebb404ada159f15207cd 100644
(file)
--- a/
plugins/elements/gstvalve.c
+++ b/
plugins/elements/gstvalve.c
@@
-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;
}