]> git.sesse.net Git - vlc/blobdiff - src/misc/beos_specific.cpp
libvlccore: push threads cancellation down vlc_thread_create
[vlc] / src / misc / beos_specific.cpp
index 226725b42b39412db04807f50ea37d57e5a96db1..f1a14d08f75057600a04b9a8205771837e754609 100644 (file)
@@ -122,6 +122,7 @@ void system_End( libvlc_int_t *p_this )
  *****************************************************************************/
 static void* AppThread( vlc_object_t * p_this )
 {
+    int canc = vlc_savecancel ();
     VlcApplication * BeApp =
         new VlcApplication("application/x-vnd.videolan-vlc");
     vlc_object_attach( p_this, p_this->p_libvlc );
@@ -129,6 +130,7 @@ static void* AppThread( vlc_object_t * p_this )
     BeApp->Run();
     vlc_object_detach( p_this );
     delete BeApp;
+    vlc_restorecancel (canc);
     return NULL;
 }