Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GStreamer
gstreamer
Commits
563ba031
Commit
563ba031
authored
Mar 05, 2012
by
Sebastian Dröge
Browse files
baseparse: Also flush the close_segment
Pushing this after flushing will confuse downstream.
parent
747dfc09
Changes
1
Hide whitespace changes
Inline
Side-by-side
libs/gst/base/gstbaseparse.c
View file @
563ba031
...
@@ -465,9 +465,10 @@ gst_base_parse_clear_queues (GstBaseParse * parse)
...
@@ -465,9 +465,10 @@ gst_base_parse_clear_queues (GstBaseParse * parse)
g_list_foreach
(
parse
->
priv
->
pending_events
,
(
GFunc
)
gst_event_unref
,
NULL
);
g_list_foreach
(
parse
->
priv
->
pending_events
,
(
GFunc
)
gst_event_unref
,
NULL
);
g_list_free
(
parse
->
priv
->
pending_events
);
g_list_free
(
parse
->
priv
->
pending_events
);
parse
->
priv
->
pending_
seek
s
=
NULL
;
parse
->
priv
->
pending_
event
s
=
NULL
;
gst_event_replace
(
&
parse
->
priv
->
pending_segment
,
NULL
);
gst_event_replace
(
&
parse
->
priv
->
pending_segment
,
NULL
);
gst_event_replace
(
&
parse
->
priv
->
close_segment
,
NULL
);
}
}
static
void
static
void
...
@@ -775,6 +776,8 @@ gst_base_parse_reset (GstBaseParse * parse)
...
@@ -775,6 +776,8 @@ gst_base_parse_reset (GstBaseParse * parse)
g_list_free
(
parse
->
priv
->
pending_events
);
g_list_free
(
parse
->
priv
->
pending_events
);
parse
->
priv
->
pending_events
=
NULL
;
parse
->
priv
->
pending_events
=
NULL
;
gst_event_replace
(
&
parse
->
priv
->
close_segment
,
NULL
);
if
(
parse
->
priv
->
cache
)
{
if
(
parse
->
priv
->
cache
)
{
gst_buffer_unref
(
parse
->
priv
->
cache
);
gst_buffer_unref
(
parse
->
priv
->
cache
);
parse
->
priv
->
cache
=
NULL
;
parse
->
priv
->
cache
=
NULL
;
...
...
Write
Preview
Supports
Markdown
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