# HG changeset patch # User reimar # Date 1257775715 0 # Node ID d133a1a83c176e19d419b8a1f1094b63a9fea073 # Parent b44a41886ed9aa1d0ca1b739e070a0ec733a9fe3 Factor out triplicated break statement. diff -r b44a41886ed9 -r d133a1a83c17 stream/stream.c --- a/stream/stream.c Mon Nov 09 10:29:15 2009 +0000 +++ b/stream/stream.c Mon Nov 09 14:08:35 2009 +0000 @@ -247,13 +247,14 @@ 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;