From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 14373 invoked from network); 23 Oct 1998 17:45:43 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 23 Oct 1998 17:45:43 -0000 Received: from reflection.aart.ch (root@reflection.aart.ch [195.65.67.59]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id NAA22311 for ; Fri, 23 Oct 1998 13:36:17 -0400 Received: from guardian.aart.ch (ftc@guardian.aart.ch [195.65.67.94]) by reflection.aart.ch (8.8.5/8.8.5) with ESMTP id TAA06018 for ; Fri, 23 Oct 1998 19:36:24 +0200 From: "Andreas U. Trottmann" Received: (from ftc@localhost) by guardian.aart.ch (8.9.1a/8.9.1/Debian/GNU) id TAA18770 for axp-list@redhat.com; Fri, 23 Oct 1998 19:36:13 +0200 Message-ID: <19981023193613.A18741@mail.aart.ch> Date: Fri, 23 Oct 1998 19:36:13 +0200 To: axp-list@redhat.com Subject: Re: New mpg123-0.59o Alpha diff Mail-Followup-To: axp-list@redhat.com References: <9810231413.AA21942@parrix19.mpi-stuttgart.mpg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93i In-Reply-To: <9810231413.AA21942@parrix19.mpi-stuttgart.mpg.de>; from Roman Martonak on Fri, Oct 23, 1998 at 04:13:12PM +0200 On Fri, Oct 23, 1998 at 04:13:12PM +0200, Roman Martonak wrote: > Is this version able to play directly from URL ? Nope. But inserting setbuf(myfile, 0); after line 223 in httpget.c (after the fdopen, just before relocate = FALSE) makes it work for me. The reason is that mpg123 mixes buffered (fgets) and unbuffered (read) calls on the network sockets which causes it to "miss" the beginning of the MP3 -> you only hear garbage. The fix just makes it use no buffer in any way; there would probably be better ways to do this. I mailed this to the author of mpg123 a couple of weeks ago (when I needed a mpg123 that could play from URLs :) ) but never got a reply. -- Andreas Trottmann