Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
George Kiagiadakis
gst-plugins-base
Commits
06885211
Commit
06885211
authored
Apr 08, 2011
by
Sebastian Dröge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vorbisdec: Unref events if the parent element disappeared
parent
5e9cfc63
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ext/vorbis/gstvorbisdec.c
ext/vorbis/gstvorbisdec.c
+3
-1
No files found.
ext/vorbis/gstvorbisdec.c
View file @
06885211
...
...
@@ -410,8 +410,10 @@ vorbis_dec_src_event (GstPad * pad, GstEvent * event)
GstVorbisDec
*
dec
;
dec
=
GST_VORBIS_DEC
(
gst_pad_get_parent
(
pad
));
if
(
G_UNLIKELY
(
dec
==
NULL
))
if
(
G_UNLIKELY
(
dec
==
NULL
))
{
gst_event_unref
(
event
);
return
FALSE
;
}
switch
(
GST_EVENT_TYPE
(
event
))
{
case
GST_EVENT_SEEK
:
...
...
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