Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
4a800b31
Commit
4a800b31
authored
Apr 17, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't use g_thread_init() with GLib 2.32
Deprecated.
parent
a4a13a38
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
30 additions
and
0 deletions
+30
-0
Main.cxx
src/Main.cxx
+2
-0
DumpDatabase.cxx
test/DumpDatabase.cxx
+3
-0
dump_playlist.cxx
test/dump_playlist.cxx
+3
-0
dump_text_file.cxx
test/dump_text_file.cxx
+3
-0
read_mixer.cxx
test/read_mixer.cxx
+2
-0
read_tags.cxx
test/read_tags.cxx
+3
-0
run_decoder.cxx
test/run_decoder.cxx
+3
-0
run_filter.cxx
test/run_filter.cxx
+3
-0
run_input.cxx
test/run_input.cxx
+3
-0
run_output.cxx
test/run_output.cxx
+2
-0
visit_archive.cxx
test/visit_archive.cxx
+3
-0
No files found.
src/Main.cxx
View file @
4a800b31
...
...
@@ -387,8 +387,10 @@ int mpd_main(int argc, char *argv[])
g_set_application_name
(
"Music Player Daemon"
);
#if !GLIB_CHECK_VERSION(2,32,0)
/* enable GLib's thread safety code */
g_thread_init
(
NULL
);
#endif
io_thread_init
();
winsock_init
();
...
...
test/DumpDatabase.cxx
View file @
4a800b31
...
...
@@ -88,7 +88,10 @@ main(int argc, char **argv)
/* initialize GLib */
#if !GLIB_CHECK_VERSION(2,32,0)
g_thread_init
(
nullptr
);
#endif
g_log_set_default_handler
(
my_log_func
,
nullptr
);
/* initialize MPD */
...
...
test/dump_playlist.cxx
View file @
4a800b31
...
...
@@ -153,7 +153,10 @@ int main(int argc, char **argv)
/* initialize GLib */
#if !GLIB_CHECK_VERSION(2,32,0)
g_thread_init
(
NULL
);
#endif
g_log_set_default_handler
(
my_log_func
,
NULL
);
/* initialize MPD */
...
...
test/dump_text_file.cxx
View file @
4a800b31
...
...
@@ -109,7 +109,10 @@ int main(int argc, char **argv)
/* initialize GLib */
#if !GLIB_CHECK_VERSION(2,32,0)
g_thread_init
(
NULL
);
#endif
g_log_set_default_handler
(
my_log_func
,
NULL
);
/* initialize MPD */
...
...
test/read_mixer.cxx
View file @
4a800b31
...
...
@@ -119,7 +119,9 @@ int main(int argc, G_GNUC_UNUSED char **argv)
return
1
;
}
#if !GLIB_CHECK_VERSION(2,32,0)
g_thread_init
(
NULL
);
#endif
main_loop
=
new
EventLoop
(
EventLoop
::
Default
());
...
...
test/read_tags.cxx
View file @
4a800b31
...
...
@@ -159,7 +159,10 @@ int main(int argc, char **argv)
decoder_name
=
argv
[
1
];
path
=
argv
[
2
];
#if !GLIB_CHECK_VERSION(2,32,0)
g_thread_init
(
NULL
);
#endif
io_thread_init
();
if
(
!
io_thread_start
(
&
error
))
{
g_warning
(
"%s"
,
error
->
message
);
...
...
test/run_decoder.cxx
View file @
4a800b31
...
...
@@ -156,7 +156,10 @@ int main(int argc, char **argv)
decoder_name
=
argv
[
1
];
decoder
.
uri
=
argv
[
2
];
#if !GLIB_CHECK_VERSION(2,32,0)
g_thread_init
(
NULL
);
#endif
g_log_set_default_handler
(
my_log_func
,
NULL
);
io_thread_init
();
...
...
test/run_filter.cxx
View file @
4a800b31
...
...
@@ -109,7 +109,10 @@ int main(int argc, char **argv)
/* initialize GLib */
#if !GLIB_CHECK_VERSION(2,32,0)
g_thread_init
(
NULL
);
#endif
g_log_set_default_handler
(
my_log_func
,
NULL
);
/* read configuration file (mpd.conf) */
...
...
test/run_input.cxx
View file @
4a800b31
...
...
@@ -123,7 +123,10 @@ int main(int argc, char **argv)
/* initialize GLib */
#if !GLIB_CHECK_VERSION(2,32,0)
g_thread_init
(
NULL
);
#endif
g_log_set_default_handler
(
my_log_func
,
NULL
);
/* initialize MPD */
...
...
test/run_output.cxx
View file @
4a800b31
...
...
@@ -196,7 +196,9 @@ int main(int argc, char **argv)
audio_format_init
(
&
audio_format
,
44100
,
SAMPLE_FORMAT_S16
,
2
);
#if !GLIB_CHECK_VERSION(2,32,0)
g_thread_init
(
NULL
);
#endif
/* read configuration file (mpd.conf) */
...
...
test/visit_archive.cxx
View file @
4a800b31
...
...
@@ -66,7 +66,10 @@ main(int argc, char **argv)
/* initialize GLib */
#if !GLIB_CHECK_VERSION(2,32,0)
g_thread_init
(
NULL
);
#endif
g_log_set_default_handler
(
my_log_func
,
NULL
);
/* initialize MPD */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment