Changeset e1b146414f8b85755fb917bbac941367fb3c4e15

Show
Ignore:
Timestamp:
24/05/08 19:00:02 (5 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1211648402 +0300
git-parent:

[db47cf33d70da786fd365b0321700b2236546926]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1211648402 +0300
Message:

Remove non-sensical connect->listen transition

Thank you big time for committing stuff against people's review.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/access_output/rtmp.c

    rdb47cf3 re1b1464  
    182182    p_sys->p_thread->fd = net_ConnectTCP( p_access, p_sys->p_thread->url.psz_host, p_sys->p_thread->url.i_port ); 
    183183    if( p_sys->p_thread->fd == -1 ) 
    184     { 
    185         int *p_fd_listen; 
    186  
    187         msg_Warn( p_access, "cannot connect to %s:%d", p_sys->p_thread->url.psz_host, p_sys->p_thread->url.i_port ); 
    188         msg_Dbg( p_access, "switching to passive mode" ); 
    189  
    190         p_sys->active = 0; 
    191  
    192         p_fd_listen = net_ListenTCP( p_access, p_sys->p_thread->url.psz_host, p_sys->p_thread->url.i_port ); 
    193         if( p_fd_listen == NULL ) 
    194         { 
    195             msg_Warn( p_access, "cannot listen to %s port %i", p_sys->p_thread->url.psz_host, p_sys->p_thread->url.i_port ); 
    196             goto error2; 
    197         } 
    198  
    199         p_sys->p_thread->fd = net_Accept( p_access, p_fd_listen, -1 ); 
    200  
    201         net_ListenClose( p_fd_listen ); 
    202  
    203         if( rtmp_handshake_passive( p_this, p_sys->p_thread->fd ) < 0 ) 
    204         { 
    205             msg_Err( p_access, "handshake passive failed"); 
    206             goto error2; 
    207         } 
    208     } 
    209     else 
    210     { 
    211         msg_Err( p_access, "to be implemented" ); 
    212184        goto error2; 
    213     } 
    214185 
    215186    if( vlc_thread_create( p_sys->p_thread, "rtmp control thread", ThreadControl,