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
87c861ca
Commit
87c861ca
authored
Jan 16, 2010
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test/run_convert: implement a GLib log callback
Log to stderr instead of the default stdout. We need a pristine stdout for the conversion result.
parent
8f326a33
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
run_convert.c
test/run_convert.c
+12
-0
No files found.
test/run_convert.c
View file @
87c861ca
...
...
@@ -36,6 +36,16 @@
#include <stddef.h>
#include <unistd.h>
static
void
my_log_func
(
const
gchar
*
log_domain
,
G_GNUC_UNUSED
GLogLevelFlags
log_level
,
const
gchar
*
message
,
G_GNUC_UNUSED
gpointer
user_data
)
{
if
(
log_domain
!=
NULL
)
g_printerr
(
"%s: %s
\n
"
,
log_domain
,
message
);
else
g_printerr
(
"%s
\n
"
,
message
);
}
const
char
*
config_get_string
(
G_GNUC_UNUSED
const
char
*
name
,
const
char
*
default_value
)
{
...
...
@@ -56,6 +66,8 @@ int main(int argc, char **argv)
return
1
;
}
g_log_set_default_handler
(
my_log_func
,
NULL
);
if
(
!
audio_format_parse
(
&
in_audio_format
,
argv
[
1
],
false
,
&
error
))
{
g_printerr
(
"Failed to parse audio format: %s
\n
"
,
...
...
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