Commit bac40aa4 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

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

And remove a few unnecessary casts.
parent c36bcec8
...@@ -223,9 +223,7 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void * ...@@ -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. // Make sure that this instance has been associated with the drawing canvas.
libvlc_exception_t ex; libvlc_exception_t ex;
libvlc_exception_init( &ex ); libvlc_exception_init( &ex );
libvlc_media_player_set_nsobject ((libvlc_media_player_t *)instance, libvlc_media_player_set_nsobject(instance, aDrawable, &ex);
aDrawable,
&ex);
catch_exception( &ex ); catch_exception( &ex );
} }
...@@ -233,10 +231,9 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void * ...@@ -233,10 +231,9 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
{ {
libvlc_exception_t ex; libvlc_exception_t ex;
libvlc_exception_init( &ex ); libvlc_exception_init( &ex );
libvlc_drawable_t ret = libvlc_media_player_get_drawable ((libvlc_media_player_t *)instance, id ret = libvlc_media_player_get_nsobject(instance);
&ex);
catch_exception( &ex ); catch_exception( &ex );
return (id)ret; return ret;
} }
- (VLCAudio *)audio - (VLCAudio *)audio
......
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