mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
baseparse: fix crash on seek from streaming thread on newsegment event
Event if it's not allowed, we can easily prevent it, so let's do that. https://bugzilla.gnome.org/show_bug.cgi?id=656771
This commit is contained in:
parent
eb08ed6ed0
commit
7043bf9d55
1 changed files with 6 additions and 2 deletions
|
@ -1851,10 +1851,14 @@ gst_base_parse_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
|
|||
parse->priv->close_segment = NULL;
|
||||
}
|
||||
if (G_UNLIKELY (parse->priv->pending_segment)) {
|
||||
GstEvent *pending_segment;
|
||||
|
||||
pending_segment = parse->priv->pending_segment;
|
||||
parse->priv->pending_segment = NULL;
|
||||
|
||||
GST_DEBUG_OBJECT (parse, "%s push pending segment",
|
||||
parse->priv->pad_mode == GST_ACTIVATE_PULL ? "loop" : "chain");
|
||||
gst_pad_push_event (parse->srcpad, parse->priv->pending_segment);
|
||||
parse->priv->pending_segment = NULL;
|
||||
gst_pad_push_event (parse->srcpad, pending_segment);
|
||||
|
||||
/* have caps; check identity */
|
||||
gst_base_parse_check_media (parse);
|
||||
|
|
Loading…
Reference in a new issue