summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2010-08-02 12:48:02 +0200
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2010-08-02 13:04:41 +0200
commit6405df0c50c22c848afa46d7f3b66fbbfb3d2c34 (patch)
tree8d26706fc6fa1376882be2f34dab5015e6d64558
parentfadff26eec5134f301a862a0f0f1553cec0ad3a4 (diff)
rtph264pay: fix element leak
-rw-r--r--gst/rtp/gstrtph264pay.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gst/rtp/gstrtph264pay.c b/gst/rtp/gstrtph264pay.c
index 6d13c6629..f41bb1803 100644
--- a/gst/rtp/gstrtph264pay.c
+++ b/gst/rtp/gstrtph264pay.c
@@ -1092,8 +1092,7 @@ static gboolean
gst_rtp_h264_pay_handle_event (GstPad * pad, GstEvent * event)
{
const GstStructure *s;
- GstRtpH264Pay *rtph264pay =
- GST_RTP_H264_PAY (gst_pad_get_parent_element (pad));
+ GstRtpH264Pay *rtph264pay = GST_RTP_H264_PAY (GST_PAD_PARENT (pad));
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_CUSTOM_DOWNSTREAM: