[vlc-devel] commit: Use the nsobject for minimal_macosx. (Pierre d'Herbemont )

git version control git at videolan.org
Sat Apr 11 21:38:10 CEST 2009


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Sat Apr 11 10:32:06 2009 -0700| [21ad64a878f6608bbe58870c9eacdf2a9b0c428e] | committer: Pierre d'Herbemont 

Use the nsobject for minimal_macosx.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=21ad64a878f6608bbe58870c9eacdf2a9b0c428e
---

 modules/gui/minimal_macosx/VLCOpenGLVoutView.m |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/gui/minimal_macosx/VLCOpenGLVoutView.m b/modules/gui/minimal_macosx/VLCOpenGLVoutView.m
index 8c078c3..bb3b1c5 100644
--- a/modules/gui/minimal_macosx/VLCOpenGLVoutView.m
+++ b/modules/gui/minimal_macosx/VLCOpenGLVoutView.m
@@ -49,12 +49,12 @@ int cocoaglvoutviewInit( vout_thread_t * p_vout )
 
     msg_Dbg( p_vout, "Mac OS X Vout is opening" );
 
-    var_Create( p_vout, "drawable-gl", VLC_VAR_DOINHERIT );
-    var_Get( p_vout, "drawabl-gl", &value_drawable );
+    var_Create( p_vout, "drawable-nsobject", VLC_VAR_DOINHERIT );
+    var_Get( p_vout, "drawable-nsobject", &value_drawable );
 
     p_vout->p_sys->o_pool = [[NSAutoreleasePool alloc] init];
 
-    o_cocoaglview_container = (id) value_drawable.i_int;
+    o_cocoaglview_container = (id) value_drawable.p_address;
     if (!o_cocoaglview_container)
     {
         msg_Warn( p_vout, "No drawable!, spawing a window" );
@@ -81,7 +81,7 @@ void cocoaglvoutviewEnd( vout_thread_t * p_vout )
     id <VLCOpenGLVoutEmbedding> o_cocoaglview_container;
 
     msg_Dbg( p_vout, "Mac OS X Vout is closing" );
-    var_Destroy( p_vout, "drawable-gl" );
+    var_Destroy( p_vout, "drawable-nsobject" );
 
     o_cocoaglview_container = [p_vout->p_sys->o_glview container];
 




More information about the vlc-devel mailing list