diff --git a/ChangeLog b/ChangeLog index 0785c11ec9..84ec2ee3d9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-06-23 Jan Schmidt + + * ext/a52dec/gsta52dec.c: (plugin_init): + Call the channel positions get_type() method in plugin_init + to ensure that it isn't simultaneously called later from + multiple threads. + 2006-06-23 Tim-Philipp Müller * gst/mpegstream/gstmpegpacketize.c: diff --git a/ext/a52dec/gsta52dec.c b/ext/a52dec/gsta52dec.c index 579ae5c1d5..1336252858 100644 --- a/ext/a52dec/gsta52dec.c +++ b/ext/a52dec/gsta52dec.c @@ -750,6 +750,10 @@ gst_a52dec_get_property (GObject * object, guint prop_id, GValue * value, static gboolean plugin_init (GstPlugin * plugin) { + /* ensure GstAudioChannelPosition type is registered */ + if (!gst_audio_channel_position_get_type ()) + return FALSE; + if (!gst_element_register (plugin, "a52dec", GST_RANK_SECONDARY, GST_TYPE_A52DEC)) return FALSE;