Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gst-plugins-base
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
George Kiagiadakis
gst-plugins-base
Commits
0a1d85c2
Commit
0a1d85c2
authored
Apr 08, 2011
by
Sebastian Dröge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtp: Unref events if the parent element disappeared or has no event handler implemented
parent
f59b9856
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
gst-libs/gst/rtp/gstbasertpdepayload.c
gst-libs/gst/rtp/gstbasertpdepayload.c
+5
-1
gst-libs/gst/rtp/gstbasertppayload.c
gst-libs/gst/rtp/gstbasertppayload.c
+3
-1
No files found.
gst-libs/gst/rtp/gstbasertpdepayload.c
View file @
0a1d85c2
...
...
@@ -482,12 +482,16 @@ gst_base_rtp_depayload_handle_sink_event (GstPad * pad, GstEvent * event)
GstBaseRTPDepayloadClass
*
bclass
;
filter
=
GST_BASE_RTP_DEPAYLOAD
(
gst_pad_get_parent
(
pad
));
if
(
G_UNLIKELY
(
filter
==
NULL
))
if
(
G_UNLIKELY
(
filter
==
NULL
))
{
gst_event_unref
(
event
);
return
FALSE
;
}
bclass
=
GST_BASE_RTP_DEPAYLOAD_GET_CLASS
(
filter
);
if
(
bclass
->
handle_event
)
res
=
bclass
->
handle_event
(
filter
,
event
);
else
gst_event_unref
(
event
);
gst_object_unref
(
filter
);
return
res
;
...
...
gst-libs/gst/rtp/gstbasertppayload.c
View file @
0a1d85c2
...
...
@@ -383,8 +383,10 @@ gst_basertppayload_event (GstPad * pad, GstEvent * event)
gboolean
res
;
basertppayload
=
GST_BASE_RTP_PAYLOAD
(
gst_pad_get_parent
(
pad
));
if
(
G_UNLIKELY
(
basertppayload
==
NULL
))
if
(
G_UNLIKELY
(
basertppayload
==
NULL
))
{
gst_event_unref
(
event
);
return
FALSE
;
}
basertppayload_class
=
GST_BASE_RTP_PAYLOAD_GET_CLASS
(
basertppayload
);
if
(
basertppayload_class
->
handle_event
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment