oggdemux: activate pad before pushing things
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 30 May 2011 15:14:48 +0000 (17:14 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 30 May 2011 15:14:48 +0000 (17:14 +0200)
Activate the pad before pushing things on it or else we get errors.

ext/ogg/gstoggdemux.c

index b02832f..0b8c71b 100644 (file)
@@ -1186,6 +1186,7 @@ gst_ogg_chain_new_stream (GstOggChain * chain, glong serialno)
       "created new ogg src %p for stream with serial %08lx", ret, serialno);
 
   g_array_append_val (chain->streams, ret);
+  gst_pad_set_active (GST_PAD_CAST (ret), TRUE);
 
   return ret;