From ebed866b099359295f98843711aa77be31970254 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 23 Jun 2006 16:29:41 +0000 Subject: [PATCH] ext/a52dec/gsta52dec.c: Call the channel positions get_type() method in plugin_init to ensure that it isn't simultane... Original commit message from CVS: * 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. --- ChangeLog | 7 +++++++ ext/a52dec/gsta52dec.c | 4 ++++ 2 files changed, 11 insertions(+) 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;