[MPlayer-dev-eng] Having MPlayer and Mencoder in a single binary.

Rich Felker dalias at aerifal.cx
Tue Jul 5 18:33:25 CEST 2005


On Fri, Jul 01, 2005 at 04:40:05PM -0500, Joey Parrish wrote:
> On Thu, Jun 30, 2005 at 09:14:45PM -0700, RC wrote:
> > On Thu, 30 Jun 2005 19:18:59 +0200
> > Benjamin Zores <ben at tutuxclan.org> wrote:
> > > The remaining question would be the unknown behaviour on Win32
> > > system's (i guess they do not support symlinks, so, copy mplayer.exe
> > > to mencoder.exe ??).
> > 
> > mencoder.lnk
> > mencoder.bat
> 
> But then argv[0] would still be "mplayer.exe".  So we should also add an
> option which would force mplayer.exe to behave as though argv[0] were
> "mencoder.exe".  That would be the most OS-independant way to do it.

Just copy the .exe file to both names. An option is an ugly hack and
not at all user-friendly. Alternatively you can make a wrapper that
invokes mplayer.exe with argv[0]=="mencoder"

Rich




More information about the MPlayer-dev-eng mailing list