<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<META name="GENERATOR" content="onet.poczta">
<STYLE TYPE="text/css"><!--P {margin:0px}--></STYLE>
</HEAD><BODY>
<P>I've restructured code, as you said, but the problem hasn't disapeared. :(. I'm still losing frames. Mayby you have some other idea?</P>
<P> </P>
<P>>>while(1)<BR>>>{<BR>>> event = 0;<BR>>> readSource->getNextFrame( buffer, buffer_size, StreamRead, <BR>>>state, StreamClose, state);<BR>>> env->taskScheduler().doEventLoop(&(event));<BR>>>}<BR>>>...<BR>>>static void StreamRead(void *data, unsigned int i_size,<BR>>> unsigned int i_truncated_bytes, struct timeval pts,<BR>>> unsigned int duration)<BR>>>{ <BR>>> env << i_size;<BR>>> event = 0xff;<BR>>>}<BR>><BR>>This code is very strange, and might be the cause of your problems <BR>>(although I'm not certain of this). Note that you don't need to call <BR>>"doEventLoop()" within a loop, because it already *is* a loop. <BR>>Instead, restructure your code as:<BR>><BR>>readSource->getNextFrame( buffer, buffer_size, StreamRead, state, <BR>>StreamClose, state);<BR>>doEventLoop();<BR>>...<BR>>static void StreamRead(void *data, unsigned int i_!
size,<BR>> unsigned int i_truncated_bytes, struct timeval pts,<BR>> unsigned int duration)<BR>>{ <BR>> env << i_size;<BR>> readSource->getNextFrame( buffer, buffer_size, StreamRead, state, <BR>>StreamClose, state);<BR>>}<BR>>-- <BR>><BR>>Ross Finlayson<BR>>Live Networks, Inc.<BR>>http://www.live555.com/<BR>>_______________________________________________<BR></P></BODY></HTML>