[vlc-devel] [PATCH] realrtsp pause seek

Rémi Denis-Courmont rdenis at simphalempin.com
Mon May 26 17:21:35 CEST 2008


Le Monday 26 May 2008 05:19:48 王波, vous avez écrit :
> about net_ReadNonBlock, i find the function in vlc-0.8.6's
> include/network.h, when i find the function i am very very happy! yes, it
> is excellent! but it is removed in new git version :(. i think it is not
> good idea, espcially when i want to discard the incorrect network data
> which have buffered. :( if we don't discard the data, play timestamp will
> be wrong and demux/codec maybe wrong. If we don't discard data here, we
> must discard the data in Demux module by checking timestamp, but it is more
> complex ...
>
> how about restore the function ?

No.

The way you were using it is anyway wrong: discard any packet until there is a 
500ms gap between to consecutive packets does not make much sense from a 
network transport protocol point of view.

And that's the whole point. net_ReadNonBlock() was a pathologically used, and 
not actually needed.

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list