mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
matroskademux: fix seek event leak
gst_matroska_demux_handle_seek_event() doesn't consume the event so we have to unref it. https://bugzilla.gnome.org/show_bug.cgi?id=748584
This commit is contained in:
parent
9119fbd774
commit
7f4f4131df
1 changed files with 4 additions and 1 deletions
|
@ -4377,8 +4377,11 @@ gst_matroska_demux_parse_id (GstMatroskaDemux * demux, guint32 id,
|
|||
|
||||
g_assert (event);
|
||||
/* unlikely to fail, since we managed to seek to this point */
|
||||
if (!gst_matroska_demux_handle_seek_event (demux, NULL, event))
|
||||
if (!gst_matroska_demux_handle_seek_event (demux, NULL, event)) {
|
||||
gst_event_unref (event);
|
||||
goto seek_failed;
|
||||
}
|
||||
gst_event_unref (event);
|
||||
/* resume data handling, main thread clear to seek again */
|
||||
GST_OBJECT_LOCK (demux);
|
||||
demux->common.state = GST_MATROSKA_READ_STATE_DATA;
|
||||
|
|
Loading…
Reference in a new issue