[vlc-commits] http: remove constant member

Rémi Denis-Courmont git at videolan.org
Thu Dec 31 17:42:58 CET 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Dec 31 18:31:02 2015 +0200| [c5a82eade80955faa68c834f7827efe48d1b9b14] | committer: Rémi Denis-Courmont

http: remove constant member

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

 modules/access/http.c |   14 --------------
 1 file changed, 14 deletions(-)

diff --git a/modules/access/http.c b/modules/access/http.c
index 42e7df7..532bd21 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -129,7 +129,6 @@ vlc_module_end ()
 struct access_sys_t
 {
     int fd;
-    bool b_error;
     vlc_tls_creds_t *p_creds;
     vlc_tls_t *p_tls;
 
@@ -218,7 +217,6 @@ static int Open( vlc_object_t *p_this )
         return VLC_ENOMEM;
 
     p_sys->fd = -1;
-    p_sys->b_error = false;
     p_sys->b_proxy = false;
     p_sys->psz_proxy_passbuf = NULL;
     p_sys->b_seekable = true;
@@ -972,12 +970,6 @@ static int Connect( access_t *p_access, uint64_t i_tell )
                     i_status = 0;
 
                 free( psz );
-
-                if( p_sys->b_error )
-                {
-                    Disconnect( p_access );
-                    return -1;
-                }
             }
             while( i_status );
         }
@@ -1131,12 +1123,6 @@ static int Request( access_t *p_access, uint64_t i_tell )
             goto error;
         }
 
-        if( p_sys->b_error )
-        {
-            free( psz );
-            goto error;
-        }
-
         /* msg_Dbg( p_input, "Line=%s", psz ); */
         if( *psz == '\0' )
         {



More information about the vlc-commits mailing list