Commit fdbde241 authored by Antoine Cellerier's avatar Antoine Cellerier

* Yet another p_libvlc_global compile fix (BeOS)

parent 575b4f39
...@@ -79,11 +79,11 @@ static void AppThread( vlc_object_t *p_appthread ); ...@@ -79,11 +79,11 @@ static void AppThread( vlc_object_t *p_appthread );
*****************************************************************************/ *****************************************************************************/
void system_Init( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] ) void system_Init( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] )
{ {
p_this->p_libvlc_global->p_appthread = vlc_global( p_this )->p_appthread =
(vlc_object_t *)vlc_object_create( p_this, sizeof(vlc_object_t) ); (vlc_object_t *)vlc_object_create( p_this, sizeof(vlc_object_t) );
/* Create the BApplication thread and wait for initialization */ /* Create the BApplication thread and wait for initialization */
vlc_thread_create( p_this->p_libvlc_global->p_appthread, "app thread", AppThread, vlc_thread_create( vlc_global( p_this )->p_appthread, "app thread", AppThread,
VLC_THREAD_PRIORITY_LOW, VLC_TRUE ); VLC_THREAD_PRIORITY_LOW, VLC_TRUE );
} }
...@@ -102,8 +102,8 @@ void system_End( libvlc_int_t *p_this ) ...@@ -102,8 +102,8 @@ void system_End( libvlc_int_t *p_this )
/* Tell the BApplication to die */ /* Tell the BApplication to die */
be_app->PostMessage( REALLY_QUIT ); be_app->PostMessage( REALLY_QUIT );
vlc_thread_join( p_this->p_libvlc_global->p_appthread ); vlc_thread_join( vlc_global( p_this )->p_appthread );
vlc_object_destroy( p_this->p_libvlc_global->p_appthread ); vlc_object_destroy( vlc_global( p_this )->p_appthread );
free( vlc_global( p_this )->psz_vlcpath ); free( vlc_global( p_this )->psz_vlcpath );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment