vlc | branch: master | Ilkka Ollakka <[email protected]> | Wed Oct  1 07:40:50 
2014 +0300| [b0e5abcd7f26e18334830e335186f7f0fec3cde2] | committer: Ilkka 
Ollakka

udp: restore original flow without else block

commit 7fff679f1494dbc7475a6010d45bd335f959c912 added else block and
left continue that didn't make code flow following any easier.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b0e5abcd7f26e18334830e335186f7f0fec3cde2
---

 modules/access/udp.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/access/udp.c b/modules/access/udp.c
index 6917ee4..5a4168f 100644
--- a/modules/access/udp.c
+++ b/modules/access/udp.c
@@ -264,10 +264,10 @@ static void* ThreadRead( void *data )
             if( errno == EINTR )
                 break;
             continue;
-        } else {
-            pkt->i_buffer = len;
-            block_FifoPut( sys->fifo, pkt );
         }
+
+        pkt->i_buffer = len;
+        block_FifoPut( sys->fifo, pkt );
     }
 
     block_FifoWake( sys->fifo );

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to