]> git.sesse.net Git - vlc/commitdiff
Revert "vlc: Make sure we call libvlc_release() when we are requested to die."
authorPierre d'Herbemont <pdherbemont@videolan.org>
Thu, 15 May 2008 20:55:01 +0000 (22:55 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Thu, 15 May 2008 20:55:01 +0000 (22:55 +0200)
This reverts commit 68bcb6a4322b55b70c231a597d7b45a5406fd7f8.

As pointed by courmisch, this is crashy.

Conflicts:

src/vlc.c

src/vlc.c

index 922ef17c1cc74d7689e3ff537566fcc5a04f3241..deaba4bedfb2d52fd66ef234236da049be2766cb 100644 (file)
--- a/src/vlc.c
+++ b/src/vlc.c
@@ -56,9 +56,6 @@ extern void __wgetmainargs(int *argc, wchar_t ***wargv, wchar_t ***wenviron,
 static void *SigHandler (void *set);
 #endif
 
-/* running vlc instance */
-static libvlc_instance_t * vlc = NULL;
-
 /*****************************************************************************
  * main: parse command line, start interface and spawn threads.
  *****************************************************************************/
@@ -187,7 +184,7 @@ int main( int i_argc, const char *ppsz_argv[] )
     libvlc_exception_init (&ex);
 
     /* Initialize libvlc */
-    vlc = libvlc_new (i_argc, ppsz_argv, &ex);
+    libvlc_instance_t *vlc = libvlc_new (i_argc, ppsz_argv, &ex);
     if (vlc != NULL)
     {
         libvlc_run_interface (vlc, NULL, &ex);
@@ -255,7 +252,7 @@ static void *SigHandler (void *data)
 
             fprintf (stderr, "signal %d received, terminating vlc - do it "
                             "again quickly in case it gets stuck\n", i_signal);
-            if (vlc) libvlc_release (vlc);
+            //VLC_Die( 0 );
         }
         else /* time (NULL) <= abort_time */
         {