[Ffmpeg-devel] HTTP probing issue... [PATCH]

Michael Niedermayer michaelni
Wed Feb 21 02:39:15 CET 2007


Hi

On Tue, Feb 20, 2007 at 04:32:39PM -0600, Ryan Martell wrote:
> 
> On Feb 20, 2007, at 3:52 PM, Klaas-Pieter Vlieg wrote:
> 
> >>From: Ryan Martell [mailto:rdm4 at martellventures.com]
> >>Sent: 20 February 2007 22:27
> >>
> >>>Try this: add a sleep(1); at line 99 in http.c Works for me.
> >>
> >>Not sure if I'm following it.  It does the open fine (which
> >>is where line 99 is in http.c).  My problem is that when it's
> >>trying to read
> >>the probe size in libavformat/utils.c, it's not hitting EOF.
> >>Instead, it's just waiting for more data (after it's read
> >>everything....)
> >>
> >Yes, I had exactly the same problem.
> >And sorry, the sleep(1) is at line 100, right after http_connect()
> 
> Hmm...
> 
> Well, I'll try that too.  But this definitely fixes the problem, and  
> in a good way (I think).
> 
> Patch will cause http_read to respect the file size if it came down  
> in the header, and only read up to that number of bytes.  If the  
> Content-Length or Content-Range was not set, this does nothing.

rejected, no fix will be accpted until the problem is understood especially
not one depending on a optional header

i suggest you try a binary search in svn versions to find out when this
broke, i think someone said it worked in the past, id also take a
carefull look at os_support.* and related changes

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Democracy is the form of government in which you can choose your dictator
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070221/d20937ba/attachment.pgp>



More information about the ffmpeg-devel mailing list