[vlc-devel] Re: X window title

Stefan Baltus stefan at cps-i.nl
Sat Apr 23 10:12:20 CEST 2005


On Sat, Apr 23, 2005 at 09:34:10AM +0200, Sigmund Augdal wrote:
> On Sat, Apr 23, 2005 at 08:54:18AM +0200, Stefan Baltus wrote:
> > Hello list,
> > 
> > I would like to add a command-line option to set the XWindow title of
> > the VLC player. Currently, the default title is 'VLC (X11 output)'. What
> > would be the best way to go about this?
> The simples way (all though arguably not the best way) would be to find the
> right place in the code(somewhere in modules/video_output/x11/xcommon.c I'd
> guess). At that place, insert a call to config_GetPsz( p_vout, "video-title"
> );
> If the return value is not NULL or empty replace the default string with
> this functions return value.
> 
> Then after this change the --video-title command line option, and the
> corresponding preferences entry should be working on linux as well.

Works brilliantly. Thanks. 

Stefan

-- 
Stefan Baltus                                   CPS Internetworking
E: stefan at cps-i.nl                              1326 NA   ALMERE
T: +31 (0)36 5451636 
M: +31 (0)6 18844094                            F: +31 (0) 842 203250

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list