[vlc-devel] [PATCH 1/2] lib: add libvlc_video_set_osd to enable/disable the OSD

Mark Lee mark.lee at capricasoftware.co.uk
Thu Feb 19 19:23:47 CET 2015

On Thu Feb 19 2015 at 18:06:22 Jean-Baptiste Kempf <jb at videolan.org> wrote:

> On 19 Feb, Mark Lee wrote :
> > The OSD is now disabled by default in a LibVLC application, this API
> > provides a way to enable it again if an application needs it.
> Where do you disable it?

The patch adds this to lib/video.c:

    var_Create (mp, "osd", VLC_VAR_BOOL);

This creates the variable with an initial value of false and therefore the
OSD is disabled.

> Why not disabling it in the src/libvlc-module file?

I don't know the criteria for deciding where those initialisations go. Is
the OSD related to the media instance or the LibVLC instance, I don't know.
Are you telling me it should go in src/libvlc.c ?

With my kindest regards,
> --
> Jean-Baptiste Kempf
> http://www.jbkempf.com/ - +33 672 704 734
> Sent from my Electronic Device
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20150219/4abc8604/attachment.html>

More information about the vlc-devel mailing list