]> git.sesse.net Git - vlc/commitdiff
Fix return value after the interaction dialog has been used.
authorJean-Paul Saman <jpsaman@videolan.org>
Tue, 20 Nov 2007 09:08:21 +0000 (09:08 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Tue, 20 Nov 2007 09:08:21 +0000 (09:08 +0000)
modules/demux/live555.cpp

index 6fc5f776f10d7830f66a0dcbb5ebddc23a4923f8..bae120c4bcdc0b9e45610e7bd5dc7dbe9965c105 100644 (file)
@@ -479,6 +479,7 @@ createnew:
     }
 
 describe:
+msg_Info( p_demux, "[%s] user=%s pwd=%s", psz_url, psz_user, psz_pwd );
     authenticator.setUsernameAndPassword( (const char*)psz_user,
                                           (const char*)psz_pwd );
 
@@ -513,11 +514,12 @@ describe:
                                                    &psz_login, &psz_password );
             if( i_ret == DIALOG_OK_YES )
             {
-               msg_Dbg( p_demux, "retrying with user=%s, pwd=%s",
-                           psz_login, psz_password );
-               if( psz_login ) psz_user = psz_login;
-               if( psz_password ) psz_pwd = psz_password;
-               goto describe;
+                msg_Dbg( p_demux, "retrying with user=%s, pwd=%s",
+                            psz_login, psz_password );
+                if( psz_login ) psz_user = psz_login;
+                if( psz_password ) psz_pwd = psz_password;
+                i_ret = VLC_SUCCESS;
+                goto describe;
             }
             if( psz_login ) free( psz_login );
             if( psz_password ) free( psz_password );