[vlc-commits] oldrc: simplify quit

Rémi Denis-Courmont git at videolan.org
Tue Mar 21 20:37:44 CET 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Mar 21 21:37:23 2017 +0200| [fe3ffffb96bf56a536998cbda5597476b1c3cdea] | committer: Rémi Denis-Courmont

oldrc: simplify quit

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

 modules/control/oldrc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/control/oldrc.c b/modules/control/oldrc.c
index bf695e5..02852c5 100644
--- a/modules/control/oldrc.c
+++ b/modules/control/oldrc.c
@@ -1854,8 +1854,7 @@ bool ReadCommand( intf_thread_t *p_intf, char *p_buffer, int *pi_size )
         {
             if( read( 0/*STDIN_FILENO*/, p_buffer + *pi_size, 1 ) <= 0 )
             {   /* Standard input closed: exit */
-                vlc_value_t empty;
-                Quit( VLC_OBJECT(p_intf), NULL, empty, empty, NULL );
+                libvlc_Quit( p_intf->obj.libvlc );
                 p_buffer[*pi_size] = 0;
                 return true;
             }



More information about the vlc-commits mailing list