From ddab78c1ab97dd68314ca16c2308c39004d9eb42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 22 May 2006 08:24:09 +0000 Subject: [PATCH] gst/asfdemux/gstasf.c: Call gst_riff_init() so the riff debug category gets set up before it is being used. Original commit message from CVS: * gst/asfdemux/gstasf.c: (plugin_init): Call gst_riff_init() so the riff debug category gets set up before it is being used. --- ChangeLog | 6 ++++++ gst/asfdemux/gstasf.c | 14 ++++++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 64effff232..cd7be7ad6b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-05-22 Tim-Philipp Müller + + * gst/asfdemux/gstasf.c: (plugin_init): + Call gst_riff_init() so the riff debug category gets set up + before it is being used. + 2006-05-19 Michael Smith * gst/iec958/ac3_padder.c: (ac3p_parse): diff --git a/gst/asfdemux/gstasf.c b/gst/asfdemux/gstasf.c index 9b59a0eca6..fda5181237 100644 --- a/gst/asfdemux/gstasf.c +++ b/gst/asfdemux/gstasf.c @@ -22,6 +22,7 @@ #endif #include +#include #include "gstasfdemux.h" /* #include "gstasfmux.h" */ @@ -29,11 +30,16 @@ static gboolean plugin_init (GstPlugin * plugin) { - if (!gst_element_register (plugin, "asfdemux", GST_RANK_SECONDARY, GST_TYPE_ASF_DEMUX)) /* - || !gst_element_register (plugin, "asfmux", GST_RANK_NONE, - GST_TYPE_ASFMUX)) - */ + gst_riff_init (); + + if (!gst_element_register (plugin, "asfdemux", GST_RANK_SECONDARY, + GST_TYPE_ASF_DEMUX)) { return FALSE; + } +/* + if (!gst_element_register (plugin, "asfmux", GST_RANK_NONE, GST_TYPE_ASFMUX)) + return FALSE; +*/ return TRUE; }