mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
ext/ogg/gstoggdemux.c: If we find a new serial number but it does not contain a BOS page, make sure we initialize the...
Original commit message from CVS: * ext/ogg/gstoggdemux.c: (gst_ogg_demux_bisect_forward_serialno), (gst_ogg_demux_read_chain): If we find a new serial number but it does not contain a BOS page, make sure we initialize the chain to NULL because else we will try to scan it and crash. Fixes #500763
This commit is contained in:
parent
11bf488b85
commit
3ec4196769
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2007-12-03 Wim Taymans <wim.taymans@gmail.com>
|
||||||
|
|
||||||
|
* ext/ogg/gstoggdemux.c: (gst_ogg_demux_bisect_forward_serialno),
|
||||||
|
(gst_ogg_demux_read_chain):
|
||||||
|
If we find a new serial number but it does not contain a BOS page, make
|
||||||
|
sure we initialize the chain to NULL because else we will try to scan it
|
||||||
|
and crash. Fixes #500763
|
||||||
|
|
||||||
2007-11-30 Wim Taymans <wim.taymans@gmail.com>
|
2007-11-30 Wim Taymans <wim.taymans@gmail.com>
|
||||||
|
|
||||||
* gst/playback/Makefile.am:
|
* gst/playback/Makefile.am:
|
||||||
|
|
|
@ -2295,6 +2295,8 @@ gst_ogg_demux_bisect_forward_serialno (GstOggDemux * ogg,
|
||||||
if (ret != GST_FLOW_OK)
|
if (ret != GST_FLOW_OK)
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
GST_LOG_OBJECT (ogg, "adding chain %p", chain);
|
||||||
|
|
||||||
g_array_insert_val (ogg->chains, 0, chain);
|
g_array_insert_val (ogg->chains, 0, chain);
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
@ -2363,6 +2365,8 @@ gst_ogg_demux_read_chain (GstOggDemux * ogg, GstOggChain ** res_chain)
|
||||||
if (chain) {
|
if (chain) {
|
||||||
gst_ogg_chain_free (chain);
|
gst_ogg_chain_free (chain);
|
||||||
}
|
}
|
||||||
|
if (res_chain)
|
||||||
|
*res_chain = NULL;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue