[MPlayer-dev-eng] Playing from URL hangs!
Erik Brage
mimarob at algonet.se
Tue Apr 22 03:42:34 CEST 2003
Hi all!
Thanx for an excellent tool!
I successfully compiled 0.90 for Linux/Debian/Stable, (kernel 2.4.18 and
gcc 2.95.4)
It worked fine for most cases, but when I tried to play from Spraydio
(www.spraydio.com) by issuing the command `mplayer
mms://wmengine.spraydio.com/studio54` (Don't try this unless you like
disco ;-) the current song played alright, but when it had finished (and
the socket closed down) the application was hung.
It also ran at 95% as viewed with top.
Looking into the code (and with gdb) it seemed that in asf_streaming.c, in
the routine asf_http_streaming_read, an infinite loop
was running, and at around line 323 (the while clause) the variable
"waiting" had somehow got the value of -4.
I made a dirty fix telling it to return zero if waiting was <0.
This is probably not the correct way so I restrained myself
from making a patch, probably waiting should never be <0 in the first
place.
It should be easy to reproduce this bug, could of course also be a
problem on the server side!
------------------------------------------------------------------------
Erik Brage
Email:
mimarob at algonet.se
Phone: Cellular:
(08) 442 33 52 (nat) 070 433 06 50
+46 8 442 33 52 (int) +46 70 433 06 50
Snailmail:
Lundagatan 51, 5tr
117 28 Stockholm
Sweden
More information about the MPlayer-dev-eng
mailing list