rc : stop the playlist before exiting, fix quitting with EOF on OSX
authorRafaël Carré <funman@videolan.org>
Fri, 4 Apr 2008 22:24:44 +0000 (00:24 +0200)
committerRafaël Carré <funman@videolan.org>
Fri, 4 Apr 2008 22:24:44 +0000 (00:24 +0200)
modules/control/rc.c

index 4bb3430..73e05dc 100644 (file)
@@ -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;