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
a81a84ea
Commit
a81a84ea
authored
Mar 01, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder_api: log audio format in a debug message
To aid debugging, print the audio format of the decoder plugin in a debug message, and print information about PCM conversion.
parent
c0e61687
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
decoder_api.c
src/decoder_api.c
+14
-0
No files found.
src/decoder_api.c
View file @
a81a84ea
...
@@ -32,6 +32,9 @@
...
@@ -32,6 +32,9 @@
#include <assert.h>
#include <assert.h>
#include <stdlib.h>
#include <stdlib.h>
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "decoder"
void
decoder_initialized
(
G_GNUC_UNUSED
struct
decoder
*
decoder
,
void
decoder_initialized
(
G_GNUC_UNUSED
struct
decoder
*
decoder
,
const
struct
audio_format
*
audio_format
,
const
struct
audio_format
*
audio_format
,
bool
seekable
,
float
total_time
)
bool
seekable
,
float
total_time
)
...
@@ -53,6 +56,17 @@ void decoder_initialized(G_GNUC_UNUSED struct decoder * decoder,
...
@@ -53,6 +56,17 @@ void decoder_initialized(G_GNUC_UNUSED struct decoder * decoder,
dc
.
state
=
DECODE_STATE_DECODE
;
dc
.
state
=
DECODE_STATE_DECODE
;
notify_signal
(
&
pc
.
notify
);
notify_signal
(
&
pc
.
notify
);
g_debug
(
"audio_format=%u:%u:%u, seekable=%s"
,
dc
.
in_audio_format
.
sample_rate
,
dc
.
in_audio_format
.
bits
,
dc
.
in_audio_format
.
channels
,
seekable
?
"true"
:
"false"
);
if
(
!
audio_format_equals
(
&
dc
.
in_audio_format
,
&
dc
.
out_audio_format
))
g_debug
(
"converting to %u:%u:%u"
,
dc
.
out_audio_format
.
sample_rate
,
dc
.
out_audio_format
.
bits
,
dc
.
out_audio_format
.
channels
);
}
}
char
*
decoder_get_uri
(
G_GNUC_UNUSED
struct
decoder
*
decoder
)
char
*
decoder_get_uri
(
G_GNUC_UNUSED
struct
decoder
*
decoder
)
...
...
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