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
3708ca37
Commit
3708ca37
authored
Jul 20, 2009
by
Edward Hervey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gstadder: Don't forget to free pending events on flush/dispose.
Fixes #588747
parent
9819a351
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
gst/adder/gstadder.c
gst/adder/gstadder.c
+11
-0
No files found.
gst/adder/gstadder.c
View file @
3708ca37
...
...
@@ -781,6 +781,12 @@ gst_adder_sink_event (GstPad * pad, GstEvent * event)
GST_OBJECT_LOCK
(
adder
->
collect
);
adder
->
segment_pending
=
TRUE
;
adder
->
flush_stop_pending
=
FALSE
;
/* Clear pending tags */
if
(
adder
->
pending_events
)
{
g_list_foreach
(
adder
->
pending_events
,
(
GFunc
)
gst_event_unref
,
NULL
);
g_list_free
(
adder
->
pending_events
);
adder
->
pending_events
=
NULL
;
}
GST_OBJECT_UNLOCK
(
adder
->
collect
);
break
;
case
GST_EVENT_TAG
:
...
...
@@ -881,6 +887,11 @@ gst_adder_dispose (GObject * object)
adder
->
collect
=
NULL
;
}
gst_caps_replace
(
&
adder
->
filter_caps
,
NULL
);
if
(
adder
->
pending_events
)
{
g_list_foreach
(
adder
->
pending_events
,
(
GFunc
)
gst_event_unref
,
NULL
);
g_list_free
(
adder
->
pending_events
);
adder
->
pending_events
=
NULL
;
}
G_OBJECT_CLASS
(
parent_class
)
->
dispose
(
object
);
}
...
...
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