[MPlayer-cvslog] r29860 - trunk/stream/stream.c
reimar
subversion at mplayerhq.hu
Mon Nov 9 15:08:35 CET 2009
Author: reimar
Date: Mon Nov 9 15:08:35 2009
New Revision: 29860
Log:
Factor out triplicated break statement.
Modified:
trunk/stream/stream.c
Modified: trunk/stream/stream.c
==============================================================================
--- trunk/stream/stream.c Mon Nov 9 11:29:15 2009 (r29859)
+++ trunk/stream/stream.c Mon Nov 9 15:08:35 2009 (r29860)
@@ -247,13 +247,14 @@ int stream_fill_buffer(stream_t *s){
case STREAMTYPE_STREAM:
#ifdef CONFIG_NETWORK
if( s->streaming_ctrl!=NULL && s->streaming_ctrl->streaming_read ) {
- len=s->streaming_ctrl->streaming_read(s->fd,s->buffer,STREAM_BUFFER_SIZE, s->streaming_ctrl);break;
+ len=s->streaming_ctrl->streaming_read(s->fd,s->buffer,STREAM_BUFFER_SIZE, s->streaming_ctrl);
} else {
- len=read(s->fd,s->buffer,STREAM_BUFFER_SIZE);break;
+ len=read(s->fd,s->buffer,STREAM_BUFFER_SIZE);
}
#else
- len=read(s->fd,s->buffer,STREAM_BUFFER_SIZE);break;
+ len=read(s->fd,s->buffer,STREAM_BUFFER_SIZE);
#endif
+ break;
case STREAMTYPE_DS:
len = demux_read_data((demux_stream_t*)s->priv,s->buffer,STREAM_BUFFER_SIZE);
break;
More information about the MPlayer-cvslog
mailing list