[MPlayer-dev-eng] [PATCH] make vo_caca work with newer libcaca

Gianluigi Tiesi mplayer at netfarm.it
Fri Sep 22 20:40:08 CEST 2006


On Fri, Sep 22, 2006 at 10:55:52AM +0200, Reimar D?ffinger wrote:
> Hello,
> On Thu, Sep 21, 2006 at 08:48:22PM +0200, Gianluigi Tiesi wrote:
> > On Thu, Sep 21, 2006 at 11:40:53AM -0700, Corey Hickey wrote:
> > > MPlayer's vo_caca was written for libcaca 0.x. libcaca 1.0 will have a 
> > > different API, but it includes a compatibility header. The attached 
> > > patch makes mplayer include that header so vo_caca will work with recent 
> > > libcaca betas (tested with 0.99beta4).
> > > 
> > > See:
> > > http://sam.zoy.org/libcaca/doc/migrating.html
> > > 
> > > Eventually (maybe sometime after libcaca 1.0 is released) vo_caca could 
> > > be rewritten to use the 1.0 API, but I don't see any pressing need to 
> > > start on that now.
> > > 
> > > This patch is very simple, so, if nobody objects, I'll apply it in one day.
> > 
> > There is already a patch that works with new api (not mine)
> > I splitted it in 2 files like for alsa:
> > http://oss.netfarm.it/mplayer/patches/xx_libcaca_split.diff
> > this replaces current vo_caca with new one and puts old in vo_caca9.c
> > for a minor size patch you must rename the old in vo_caca9.c and
> > add the new as vo_caca.c or change the configure patch
> > to do it in a different way.
> > The patch works is also tested on win32.
> 
> I personally would prefer the much simpler patch instead of (as I see
> it) needlessly creating another vo. Unless we in some way can profit
> from the new API (does it have new features we would want?)
> 
A patch to suporrt both in a single file is not reasonable,
removing old api is an idea, the author of the patch asked
this, when he submitted. You can anyway use my configure patch
code since it can detect v1 only api.
Yes new version has new feature but I dunno exactly what, the main problem
is that many distrib are moving to 1.x beta and I doubt that
old version can work on win32 while the new beta does.

Bye

-- 
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/



More information about the MPlayer-dev-eng mailing list