[pulseaudio-discuss] [PATCH 2/2] gconf: Avoid calling deprecated function if possible

Felipe Sateler fsateler at debian.org
Tue Apr 22 06:05:51 PDT 2014


On Tue, Apr 22, 2014 at 4:35 AM, Arun Raghavan <arun at accosted.net> wrote:
> g_type_init() is need no longer be called explicitly from glib 2.36
> onwards.
> ---
>  src/modules/gconf/gconf-helper.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/modules/gconf/gconf-helper.c b/src/modules/gconf/gconf-helper.c
> index fbd8cfd..3c1180c 100644
> --- a/src/modules/gconf/gconf-helper.c
> +++ b/src/modules/gconf/gconf-helper.c
> @@ -99,7 +99,9 @@ int main(int argc, char *argv[]) {
>      GConfClient *client;
>      GSList *modules, *m;
>
> +#if !GLIB_CHECK_VERSION(2,36,0)
>      g_type_init();
> +#endif
>
>      if (!(client = gconf_client_get_default()))
>          goto fail;

What happens if pulseaudio is compiled against 2.36+ but is run
against an older version of glib?

This could happen when using packages compiled on another distro/release.

-- 

Saludos,
Felipe Sateler


More information about the pulseaudio-discuss mailing list