[vlc-devel] Where to hard-code permanent loading of marquee..

Peter Tap ptrtap at yahoo.com
Thu Mar 15 06:02:05 CET 2012


Hello Edward,

Thank you for your help.

I think I may not have been clear in what I was asking for. I wanted to permanently code it in my customized version of vlc such that the module always gets loaded irrespective of the settings in the preferences or tools dialogs.

After digging through the code a bit deeper, it appears the answer could be in set_capability macro. For example, for the marquee filter, it is defined as:

    set_capability( "sub source", 0 )

The second parameter, the score, dictates how the module is loaded. The value 0 implies that the module can only be loaded explicitly. However, if I use a different value, the module will automatically get loaded.

Although I haven't tried it yet, I think that may do the trick.

Regards,
Peter



________________________________
 From: Edward Wang <edward.c.wang at compdigitec.com>
To: Mailing list for VLC media player developers <vlc-devel at videolan.org> 
Sent: Wednesday, March 14, 2012 8:36 PM
Subject: Re: [vlc-devel] Where to hard-code permanent loading of marquee..
 
On 12-03-14 11:25 PM, Peter Tap wrote:
> 
> In my customized version of VLC, the values used for the marquee filter are hard-coded and seem to be working as expected. There is still one problem I am trying to overcome. It seems the only way to enable the marquee filter is to go through Tools-->Effects and Filters-->Overlay and check "Add Text." However, in my case, I would like to have the filter always enabled whether or not "Add Text" is checked. I am trying to understand where would be a good place to permanently force this value.
Tools -> Preferences (select "All" radiobutton) -> Video -> Subtitles/OSD -> (Right panel)Subpictures filter module -> Check "Marquee"

Regards,
    Edward Wang
_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
http://mailman.videolan.org/listinfo/vlc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120314/80edf8ab/attachment.html>


More information about the vlc-devel mailing list