[vlc-devel] [PATCH 1/8] Add CALayer module

Pierre d'Herbemont pdherbemont at free.fr
Fri Sep 10 10:13:39 CEST 2010


> +static CALayer *getDrawable(vout_display_t *vd)
> +{
> +    CALayer *layer = var_CreateGetAddress(vd, "drawable-nsobject");
> +    var_Destroy(vd, "drawable-nsobject");
> +    return layer;
> +}

Here testing that layer is a CALayer is a requirement. ie: -[NSObject
isKindOfClass:].

That would also allow us to set a higher capability on the vout. This
let libvlc clients select this vout, just by passing a CALayer instead
of a NSView. Documenting this behavior in media_player_set_nsobject
would be a bonus :)

Pierre.



More information about the vlc-devel mailing list