[MPlayer-dev-eng] streaming, rtp
Arpi
arpi at thot.banki.hu
Sun Dec 23 23:06:43 CET 2001
Hi,
just merged an old patch for RTP support.
i had to chaneg some things....
and run into this:
int
nop_streaming_read( int fd, char *buffer, int size, streaming_ctrl_t
*stream_ctr int len=0;
//printf("nop_streaming_read\n");
if( stream_ctrl->buffer_size!=0 ) {
int buffer_len =
stream_ctrl->buffer_size-stream_ctrl->buffer_poprintf("%d bytes in
buffer\n", stream_ctrl->buffer_size);
len = (size<buffer_len)?size:buffer_len;
memcpy( buffer,
(stream_ctrl->buffer)+(stream_ctrl->buffer_pos),
...
stream->streaming_ctrl->streaming_read = nop_streaming_read;
stream->streaming_ctrl->streaming_seek = nop_streaming_seek;
stream->streaming_ctrl->prebuffer_size = 180000;
// stream->streaming_ctrl->prebuffer_size = 0;
stream->streaming_ctrl->buffering = 1;
// stream->streaming_ctrl->buffering = 0;
stream->streaming_ctrl->status = streaming_playing_e;
so, it seems it uses some kind of hidden buffering.
is it neccessary ? why?
or is it obsolete, just forgot to remove?
cache2 should do that, and it does.
A'rpi / Astral & ESP-team
--
mailto:arpi at thot.banki.hu
http://esp-team.scene.hu
More information about the MPlayer-dev-eng
mailing list