changeset 29818:d133a1a83c17

Factor out triplicated break statement.
author reimar
date Mon, 09 Nov 2009 14:08:35 +0000
parents b44a41886ed9
children 2c2733d12823
files stream/stream.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;