ext/ogg/gstoggdemux.c: Don't try to activate NULL chains.

Original commit message from CVS:
* ext/ogg/gstoggdemux.c: (gst_ogg_demux_activate_chain):
Don't try to activate NULL chains.
This commit is contained in:
Wim Taymans 2006-03-09 17:45:39 +00:00
parent c5de07b3d9
commit f0862d80d9
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2006-03-09 Wim Taymans <wim@fluendo.com>
* ext/ogg/gstoggdemux.c: (gst_ogg_demux_activate_chain):
Don't try to activate NULL chains.
2006-03-09 Tim-Philipp Müller <tim at centricular dot net>
* gst/typefind/gsttypefindfunctions.c: (mp3_type_find_at_offset):

View file

@ -1557,6 +1557,12 @@ gst_ogg_demux_activate_chain (GstOggDemux * ogg, GstOggChain * chain,
gst_ogg_demux_deactivate_current_chain (ogg);
/* FIXME, should not be called with NULL */
if (chain == NULL) {
ogg->current_chain = chain;
return TRUE;
}
GST_DEBUG ("activating chain %p", chain);
/* first add the pads */