[vlc-devel] commit: Do not reconnect (http) when we are asked to die. (Laurent Aimar )

git version control git at videolan.org
Thu Jul 16 21:23:54 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Jul 16 14:13:02 2009 +0200| [b508c8c923b319d44560cc559c5ca6c55c8832e8] | committer: Laurent Aimar 

Do not reconnect (http) when we are asked to die.

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

 modules/access/http.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/http.c b/modules/access/http.c
index fdcee42..44f63e9 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -799,7 +799,7 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
             p_sys->b_continuous = true;
         }
         Disconnect( p_access );
-        if( p_sys->b_reconnect )
+        if( p_sys->b_reconnect && vlc_object_alive( p_access ) )
         {
             msg_Dbg( p_access, "got disconnected, trying to reconnect" );
             if( Connect( p_access, p_access->info.i_pos ) )




More information about the vlc-devel mailing list