mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
oggdemux: Don't leak incoming EOS event
If we're going to drop it ... then do drop it :) Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3412>
This commit is contained in:
parent
a44530df57
commit
169bbd2fea
1 changed files with 3 additions and 0 deletions
|
@ -2524,6 +2524,7 @@ gst_ogg_demux_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
||||||
GST_DEBUG_OBJECT (ogg, "Error seeking back after duration check: %d",
|
GST_DEBUG_OBJECT (ogg, "Error seeking back after duration check: %d",
|
||||||
res);
|
res);
|
||||||
}
|
}
|
||||||
|
gst_event_unref (event);
|
||||||
res = TRUE;
|
res = TRUE;
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
|
@ -2538,6 +2539,8 @@ gst_ogg_demux_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
||||||
}
|
}
|
||||||
if (!drop)
|
if (!drop)
|
||||||
res = gst_ogg_demux_send_event (ogg, event);
|
res = gst_ogg_demux_send_event (ogg, event);
|
||||||
|
else
|
||||||
|
gst_event_unref (event);
|
||||||
if (ogg->current_chain == NULL) {
|
if (ogg->current_chain == NULL) {
|
||||||
GST_WARNING_OBJECT (ogg,
|
GST_WARNING_OBJECT (ogg,
|
||||||
"EOS while trying to retrieve chain, seeking disabled");
|
"EOS while trying to retrieve chain, seeking disabled");
|
||||||
|
|
Loading…
Reference in a new issue