comparison libmpdemux/stream.c @ 4042:d651a7b5d213

STREAMTYPE_PLAYLIST introduced. similar to STREAMTYPE_STREAM but used for playlists. patch by Alban Bedel <albeu@free.fr>
author arpi
date Tue, 08 Jan 2002 01:19:54 +0000
parents 2122a13b5a29
children 89369725b561
comparison
equal deleted inserted replaced
4041:879a668ee540 4042:d651a7b5d213
38 int len; 38 int len;
39 if(s->eof){ s->buf_pos=s->buf_len=0; return 0; } 39 if(s->eof){ s->buf_pos=s->buf_len=0; return 0; }
40 switch(s->type){ 40 switch(s->type){
41 case STREAMTYPE_FILE: 41 case STREAMTYPE_FILE:
42 case STREAMTYPE_STREAM: 42 case STREAMTYPE_STREAM:
43 case STREAMTYPE_PLAYLIST:
43 #ifdef STREAMING 44 #ifdef STREAMING
44 if( s->streaming_ctrl!=NULL ) { 45 if( s->streaming_ctrl!=NULL ) {
45 len=s->streaming_ctrl->streaming_read(s->fd,s->buffer,STREAM_BUFFER_SIZE, s->streaming_ctrl);break; 46 len=s->streaming_ctrl->streaming_read(s->fd,s->buffer,STREAM_BUFFER_SIZE, s->streaming_ctrl);break;
46 } else { 47 } else {
47 len=read(s->fd,s->buffer,STREAM_BUFFER_SIZE);break; 48 len=read(s->fd,s->buffer,STREAM_BUFFER_SIZE);break;