Commit 6405df0c authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

rtph264pay: fix element leak

parent fadff26e
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment