]> git.sesse.net Git - vlc/commitdiff
Remove system_End() except on Windows, simplify
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 6 Sep 2012 09:40:40 +0000 (12:40 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 6 Sep 2012 09:40:40 +0000 (12:40 +0300)
src/libvlc.c
src/libvlc.h
src/os2/specific.c
src/posix/darwin_specific.c
src/posix/specific.c

index cef48a531819a9fcb6deda2726279a463190893e..293c963e5b1e9138d960c98477133fad45c41c51 100644 (file)
@@ -357,7 +357,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
                     {
                         msg_Err( p_libvlc, "D-Bus problem" );
                         free( psz_mrl );
-                        system_End( );
                         exit( 1 );
                     }
 
@@ -368,7 +367,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
                     {
                         dbus_message_unref( p_dbus_msg );
                         free( psz_mrl );
-                        system_End( );
                         exit( 1 );
                     }
                     free( psz_mrl );
@@ -377,7 +375,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
                                 DBUS_TYPE_OBJECT_PATH, &psz_after_track ) )
                     {
                         dbus_message_unref( p_dbus_msg );
-                        system_End( );
                         exit( 1 );
                     }
 
@@ -389,7 +386,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
                                 DBUS_TYPE_BOOLEAN, &b_play ) )
                     {
                         dbus_message_unref( p_dbus_msg );
-                        system_End( );
                         exit( 1 );
                     }
 
@@ -399,7 +395,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
                     {
                         msg_Err( p_libvlc, "D-Bus problem" );
                         dbus_message_unref( p_dbus_msg );
-                        system_End( );
                         exit( 1 );
                     }
 
@@ -407,7 +402,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
                     {
                         msg_Err( p_libvlc, "D-Bus problem" );
                         dbus_message_unref( p_dbus_msg );
-                        system_End( );
                         exit( 1 );
                     }
                     dbus_connection_flush( p_conn );
@@ -418,7 +412,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
                 } /* processes all command line MRLs */
 
                 /* bye bye */
-                system_End( );
                 exit( 0 );
             }
         }
@@ -715,6 +708,9 @@ void libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
     module_EndBank (true);
 
     vlc_DeinitActions( p_libvlc, priv->actions );
+#ifdef WIN32
+    system_End( );
+#endif
 }
 
 /**
@@ -728,8 +724,6 @@ void libvlc_InternalDestroy( libvlc_int_t *p_libvlc )
 {
     libvlc_priv_t *priv = libvlc_priv( p_libvlc );
 
-    system_End( );
-
     /* Destroy mutexes */
     vlc_ExitDestroy( &priv->exit );
     vlc_mutex_destroy( &priv->ml_lock );
index 5d744507043671f9e72dadc995076d157c3bc037..20bde6e78ebd94edcf790311bc9e1d7b03b7b3e0 100644 (file)
@@ -41,8 +41,9 @@ size_t vlc_towc (const char *str, uint32_t *restrict pwc);
  */
 void system_Init      ( void );
 void system_Configure ( libvlc_int_t *, int, const char *const [] );
-void system_End       ( void );
-
+#ifdef WIN32
+void system_End(void);
+#endif
 void vlc_CPU_init(void);
 void vlc_CPU_dump(vlc_object_t *);
 
index 5db0b187f2c722dadf5a740f373fa13b83d5ceed..9cc2e09155cf6beeb9ab85aef84cc68add16b111 100644 (file)
@@ -52,7 +52,3 @@ void system_Configure( libvlc_int_t *p_this, int i_argc, const char *const ppsz_
         }
     }
 }
-
-void system_End( void )
-{
-}
index ce11a88c9fd0392c74766468484258a50d224c6d..71416c64a7ee6c0d9c10e0754df2287f5a617266 100644 (file)
@@ -83,11 +83,3 @@ void system_Configure( libvlc_int_t *p_this,
     (void)i_argc;
     (void)ppsz_argv;
 }
-
-/*****************************************************************************
- * system_End: free the program path.
- *****************************************************************************/
-void system_End( void )
-{
-}
-
index 0a65fb3359f9f6d56db8542a5dbcc16f94695b34..971ec6a8fea9f4639e0a55bb37ce5c99b451e530 100644 (file)
@@ -34,7 +34,3 @@ void system_Configure (libvlc_int_t *libvlc,
 {
     (void)libvlc; (void)argc; (void)argv;
 }
-
-void system_End (void)
-{
-}