Max Kellermann a écrit :
> On 2008/12/08 14:35, Gilles Filippini <[EMAIL PROTECTED]> wrote:
>> There is no delay at all between "client 0: process command "play""
>> and "playlist: stop". The very same ogg file is played correctly
>> using yauap.
>
> This is quite difficult for me to debug, since I don't have armel. Is
> there any chance you could try to run that in gdb? Break
> oggvorbis_decode() and see where and why it returns... you probably
> need to build MPD with debug symbols for that.
OK. Here is what I've got so far:
The breakpoint at oggvorbis_decode() isn't triggered. So I've tried a
breakpoint at decoder_stream_decode(). This one was catched. And
stepping further it seems mpd tries to use the oggflac plugin which has
been disabled during the configure step (the ogg decoder should be tremor):
(gdb) run
Starting program: /usr/bin/mpd --no-daemon --stdout
[Thread debugging using libthread_db enabled]
[New Thread 0x40f67a30 (LWP 18883)]
No "audio_output" defined in config file
Attempt to detect audio output device
Attempting to detect a alsa audio device
Successfully detected a alsa audio device
[New Thread 0x419e3470 (LWP 18884)]
[New Thread 0x421e3470 (LWP 18885)]
client 0: opened from 127.0.0.1
[Switching to Thread 0x419e3470 (LWP 18884)]
Breakpoint 1, decoder_stream_decode (plugin=0x3ff78, decoder=0x419e2d40,
input_stream=0x419e2dac) at /root/mpd-0.14~beta2/./src/decoder_thread.c:38
38 assert(plugin != NULL);
(gdb) next
37 {
(gdb) next
38 assert(plugin != NULL);
(gdb) next
client 1: opened from 127.0.0.1
client 0: closed
39 assert(plugin->stream_decode != NULL);
(gdb) next
40 assert(decoder != NULL);
(gdb) next
41 assert(!decoder->stream_tag_sent);
(gdb) next
42 assert(input_stream != NULL);
(gdb) next
43 assert(input_stream->ready);
(gdb) next
44 assert(dc.state == DECODE_STATE_START);
(gdb) next
47 input_stream_seek(input_stream, 0, SEEK_SET);
(gdb) next
49 plugin->stream_decode(decoder, input_stream);
(gdb) step
oggflac_decode (decoder=0x419e2d40, inStream=0x419e2dac) at
/root/mpd-0.14~beta2/./src/decoder/flac_plugin.c:443
443 {
(gdb)
Hope this helps. Tell me if you need further investigation.
Cheers,
_Gilles.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]