[vlc-devel] commit: Make sure we don't use the deprecated get_drawable(), by using get_nsobject(). (Pierre d'Herbemont )

git version control git at videolan.org
Tue Aug 18 12:16:21 CEST 2009


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Sun Aug  2 18:19:40 2009 -0700| [bac40aa40e4cf6652ca8f2fc5e17a466eec3e9af] | committer: Pierre d'Herbemont 

Make sure we don't use the deprecated get_drawable(), by using get_nsobject().

And remove a few unnecessary casts.

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

 projects/macosx/framework/Sources/VLCMediaPlayer.m |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/projects/macosx/framework/Sources/VLCMediaPlayer.m b/projects/macosx/framework/Sources/VLCMediaPlayer.m
index be11560..7045604 100644
--- a/projects/macosx/framework/Sources/VLCMediaPlayer.m
+++ b/projects/macosx/framework/Sources/VLCMediaPlayer.m
@@ -223,9 +223,7 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
     // Make sure that this instance has been associated with the drawing canvas.
     libvlc_exception_t ex;
     libvlc_exception_init( &ex );
-    libvlc_media_player_set_nsobject ((libvlc_media_player_t *)instance, 
-                                        aDrawable, 
-                                        &ex);
+    libvlc_media_player_set_nsobject(instance, aDrawable, &ex);
     catch_exception( &ex );
 }
 
@@ -233,10 +231,9 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
 {
     libvlc_exception_t ex;
     libvlc_exception_init( &ex );
-    libvlc_drawable_t ret = libvlc_media_player_get_drawable ((libvlc_media_player_t *)instance, 
-                                        &ex);
+    id ret = libvlc_media_player_get_nsobject(instance);
     catch_exception( &ex );
-    return (id)ret;
+    return ret;
 }
 
 - (VLCAudio *)audio




More information about the vlc-devel mailing list