[vlc-devel] mjpeg demux and infinite wait.

Sébastien Escudier sebastien-devel at celeos.eu
Fri Jan 16 11:33:36 CET 2009



Hi

I am reading a mjpeg stream with http connection.
But when the connection is lost, this input thread will never end. The demuxer
is waiting for data (with a poll call), without timeout.
Is it a normal behaviour ?

Thanks.

Input thread backtrace :
#0  0xb7fbe410 in __kernel_vsyscall ()
#1  0xb7decc07 in poll () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7f48ff8 in __net_Read (p_this=0x81331e0, fd=7, vs=0x0, p_buf=0xb5502033,
i_buflen=7605, waitall=false) at network/io.c:306
#3  0xb7a758b4 in Read (p_access=0x81331e0, p_buffer=0xb5502033 "", i_len=7605)
at http.c:722
#4  0xb7a75eed in ReadCompressed (p_access=0x81331e0, p_buffer=0xb5502033 "",
i_len=7605) at http.c:876
#5  0xb7f27e6b in AReadStream (s=0x8133de0, p_read=0xb5502033, i_read=7605) at
input/stream.c:1682
#6  0xb7f27132 in AStreamRefillStream (s=0x8133de0) at input/stream.c:1358
#7  0xb7f2661e in AStreamReadStream (s=0x8133de0, p_read=0x8141770, i_read=8310)
at input/stream.c:1117
#8  0xb7f2886c in stream_Read (s=0x8133de0, p_read=0x8141770, i_read=8310) at
input/stream.c:1870
#9  0xb7908cb8 in Read (s=0x8136d30, p_read=0x8141770, i_read=8310) at
record.c:127
#10 0xb7f2886c in stream_Read (s=0x8136d30, p_read=0x8141770, i_read=8310) at
input/stream.c:1870
#11 0xb7f28962 in stream_Block (s=0x8136d30, i_size=8310) at input/stream.c:1933
#12 0xb6ec9463 in SendBlock (p_demux=0x8137448, i=8310) at mjpeg.c:268
#13 0xb6ec9f7d in MimeDemux (p_demux=0x8137448) at mjpeg.c:510
#14 0xb7f1a594 in demux_Demux (p_demux=0x8137448) at input/demux.h:45
#15 0xb7f1a2b4 in MainLoopDemux (p_input=0x812da80, pb_changed=0xb680837f,
pi_start_mdate=0xb6808370) at input/input.c:575
#16 0xb7f1a9ea in MainLoop (p_input=0x812da80) at input/input.c:753
#17 0xb7f1a0c0 in Run (p_this=0x812da80) at input/input.c:520
#18 0xb7f5d31e in thread_entry (data=0x812e3c8) at misc/threads.c:842
#19 0xb7e9d4fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#20 0xb7df6e5e in clone () from /lib/tls/i686/cmov/libc.so.6




More information about the vlc-devel mailing list