<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/1.0.0.99">
</HEAD>
<BODY>
Is there anything that constitutes the end of the packet, besides the size from the header; like 0xFF or something? It's been a while since coding this low in tcpip, but isn't there a way (by setting flags or something in read or somwhere) to read from the stream and -not- remove the data from the buffer (sort of a read ahead)? If not I'm assuming that the read_asf_header just passes back something like and int, specifying the size of the packet - this will just have to simply be re-written to pass back a structure or something :-( Another way, which is a very ugly hack, and will probably slow down the process to much (but maybe not) would be to set an environment variable in read_asf_header to the size of the packet and then unset it in asf_http_streaming_read... Just some ideas/thoughts, haven't looked at the code...
<BR>

<BR>

<BR>

<BR>
On Mon, 2001-12-10 at 08:52, Alban Bedel wrote:
    <BLOCKQUOTE>
<PRE><FONT COLOR="#258d00"><FONT SIZE="3"><I>[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]</FONT></FONT></I>
<FONT COLOR="#258d00"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#258d00"><FONT SIZE="3"><I> Hello,</FONT></FONT></I>
<FONT COLOR="#258d00"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#258d00"><FONT SIZE="3"><I>I hacked a little the libmpdemux to make the asf streaming working. Now it's working</FONT></FONT></I>
<FONT COLOR="#258d00"><FONT SIZE="3"><I>but it can't work with the cache and I'd like to have your view of the problem.</FONT></FONT></I>
<FONT COLOR="#258d00"><FONT SIZE="3"><I>The asf_streaming.c : asf_http_streaming_read function must return full asf packet </FONT></FONT></I>
<FONT COLOR="#258d00"><FONT SIZE="3"><I>wich are of a constant size. In the stream there are not of a constant size and we must</FONT></FONT></I>
<FONT COLOR="#258d00"><FONT SIZE="3"><I>pad the missing part with 0. To do this we need to have the asf_packetsize wich </FONT></FONT></I>
<FONT COLOR="#258d00"><FONT SIZE="3"><I>is computed in asfheader.c : read_asf_header. But when we use the cache the reading </FONT></FONT></I>
<FONT COLOR="#258d00"><FONT SIZE="3"><I>is done in another process and we can't get this fucking packetsize updated to the </FONT></FONT></I>
<FONT COLOR="#258d00"><FONT SIZE="3"><I>good value and the streaming simply don't work.</FONT></FONT></I>
<FONT COLOR="#258d00"><FONT SIZE="3"><I>I hope all this is understable, I will send the patch soon so you can see what is</FONT></FONT></I>
<FONT COLOR="#258d00"><FONT SIZE="3"><I>going on. But if possible a prefer to first fix this issue with caching.</FONT></FONT></I>
<FONT COLOR="#258d00"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#258d00"><FONT SIZE="3"><I>PS : Sorry for the last time with my sdl fix, I've seen how to send patch after sending</FONT></FONT></I>
<FONT COLOR="#258d00"><FONT SIZE="3"><I>       my mail. Too lazy but it will come with the asf streaming.</FONT></FONT></I>
<FONT COLOR="#258d00"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#258d00"><FONT SIZE="3"><I>_______________________________________________</FONT></FONT></I>
<FONT COLOR="#258d00"><FONT SIZE="3"><I>RTFM!!!  http://www.MPlayerHQ.hu/DOCS</FONT></FONT></I>
<FONT COLOR="#258d00"><FONT SIZE="3"><I>Search:  http://www.MPlayerHQ.hu/cgi-bin/htsearch</FONT></FONT></I>
<FONT COLOR="#258d00"><FONT SIZE="3"><I>http://mplayerhq.hu/mailman/listinfo/mplayer-users</FONT></FONT></I>
<FONT COLOR="#258d00"><FONT SIZE="3"><I></FONT></FONT></I></PRE>
    </BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<H1>Curtis Wood 
<HR LENGTH="100">
<FONT SIZE="2"><B><I>System administrator</FONT></B></I>
<BR>
<FONT SIZE="2">Bluedomino hosting</FONT>
<BR>
<FONT SIZE="2"></FONT>
<BR>
<FONT SIZE="2">Website: </FONT><A HREF="http://www.bluedomino.net"><FONT SIZE="2">www.bluedomino.net</FONT></A>
<BR>
<FONT SIZE="2">Office#: (361)887-7778x205</FONT>
<BR>
<FONT SIZE="2">Email: </FONT><A HREF="mailto:curtis@bluedomino.net"><FONT SIZE="2">curtis@bluedomino.net</FONT></A></H1>
</TD>
</TR>
</TABLE>

</BODY>
</HTML>