mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
gconf: Avoid calling deprecated function if possible
g_type_init() is need no longer be called explicitly from glib 2.36 onwards.
This commit is contained in:
parent
a30650d2ce
commit
c78860c97b
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue