[vlc-commits] shout: remove unused values

Rémi Denis-Courmont git at videolan.org
Sun Aug 23 09:16:08 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Aug 23 10:15:58 2015 +0300| [321c5866dae98d9bc5c40ca1a38fbf8f42062b16] | committer: Rémi Denis-Courmont

shout: remove unused values

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

 modules/access_output/shout.c |   12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/modules/access_output/shout.c b/modules/access_output/shout.c
index f5ce49a..127af94 100644
--- a/modules/access_output/shout.c
+++ b/modules/access_output/shout.c
@@ -316,11 +316,7 @@ static int Open( vlc_object_t *p_this )
     while ( i_ret != SHOUTERR_CONNECTED )
     {
         /* Shout parameters cannot be changed on an open connection */
-        i_ret = shout_close( p_shout );
-        if( i_ret == SHOUTERR_SUCCESS )
-        {
-            i_ret = SHOUTERR_UNCONNECTED;
-        }
+        shout_close( p_shout );
 
         /* Re-initialize for Shoutcast using ICY protocol. Not needed for initial connection
            but it is when we are reconnecting after other protocol was tried. */
@@ -341,11 +337,7 @@ static int Open( vlc_object_t *p_this )
             msg_Warn( p_access, "failed to connect using 'icy' (shoutcast) protocol" );
 
             /* Shout parameters cannot be changed on an open connection */
-            i_ret = shout_close( p_shout );
-            if( i_ret == SHOUTERR_SUCCESS )
-            {
-                i_ret = SHOUTERR_UNCONNECTED;
-            }
+            shout_close( p_shout );
 
             /* IceCAST using HTTP protocol */
             i_ret = shout_set_protocol( p_shout, SHOUT_PROTOCOL_HTTP );



More information about the vlc-commits mailing list