[vlc-devel] commit: rc : stop the playlist before exiting, fix quitting with EOF on OSX ( Rafaël Carré )

git version control git at videolan.org
Sat Apr 5 00:24:31 CEST 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sat Apr  5 00:24:44 2008 +0200| [1a74e0bf8222741078115b8296758bd8eafd2a9e]

rc : stop the playlist before exiting, fix quitting with EOF on OSX

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

 modules/control/rc.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/modules/control/rc.c b/modules/control/rc.c
index 4bb3430..73e05dc 100644
--- a/modules/control/rc.c
+++ b/modules/control/rc.c
@@ -2123,8 +2123,11 @@ vlc_bool_t ReadCommand( intf_thread_t *p_intf, char *p_buffer, int *pi_size )
             p_intf->p_sys->i_socket = -1;
         }
         else
+        {
             /* Standard input closed: exit */
-            vlc_object_kill( p_intf );
+            vlc_value_t empty;
+            Quit( p_intf, NULL, empty, empty, NULL );
+        }
 
         p_buffer[ *pi_size ] = 0;
         return VLC_TRUE;




More information about the vlc-devel mailing list