From f0862d80d9b0d21b40bb8009754fe80603cb2949 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 9 Mar 2006 17:45:39 +0000 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ ext/ogg/gstoggdemux.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 02f59f9da1..5013818328 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-03-09 Wim Taymans + + * ext/ogg/gstoggdemux.c: (gst_ogg_demux_activate_chain): + Don't try to activate NULL chains. + 2006-03-09 Tim-Philipp Müller * gst/typefind/gsttypefindfunctions.c: (mp3_type_find_at_offset): diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index b9c4388778..a1628ef14c 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -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 */