[MPlayer-dev-eng] [PATCH] tivo vstream

Torinthiel torinthiel at megapolis.pl
Thu Aug 12 15:21:25 CEST 2004


On Wed, Aug 11, 2004 at 07:11:05PM -0500, Joey Parrish wrote:
> diff -Nur main.sofar/configure main.dev/configure
> --- main.sofar/configure	2004-08-10 03:07:20.000000000 +0000
> +++ main.dev/configure	2004-08-11 03:18:37.485750400 +0000
> @@ -248,6 +248,7 @@
>    --enable-zr            build with ZR360[56]7/ZR36060 support [autodetect]
>    --enable-bl		 build with Blinkenlights support [disable]
>    --enable-tdfxvid       build with tdfx_vid support [disable]
> +  --disable-vstream      build with TiVo vstream [enable]
If the option is disable then the text should say _without_.

> @@ -4532,6 +4536,13 @@
>  fi
>  echores "$_cdparanoia"
>  
> +echocheck "vstream"
> +if test "$_vstream" = yes ; then
> +    _def_vstream='#define HAVE_VSTREAM 1'
> +else
> +_def_vstream='#undef HAVE_VSTREAM'
> +fi
> +echores "$_vstream"
Is there really no test necessary? Also I get it as one of the input
modules. So please add name to _inputmodules and _noinputmodules, so
that it gets displayed properly when configure reports what it has
detected.

> diff -Nur main.sofar/vstream/Makefile main.dev/vstream/Makefile
> --- main.sofar/vstream/Makefile	1970-01-01 00:00:00.000000000 +0000
> +++ main.dev/vstream/Makefile	2004-08-11 03:18:37.796196800 +0000
> @@ -0,0 +1,48 @@
> +
> +LIBNAME = vstream.a
> +
> +include ../config.mak
> +
> +SRCS = mfs.c object.c schema.c query.c util.c bitmap.c io.c partition.c crc.c  vstream.c
> +
> +OBJS	= $(SRCS:.c=.o)
> +OBJS   += $(CPLUSPLUSSRCS:.cpp=.o)

You use C++? Haven't noticed.

> +INCLUDE = -I..
> +CFLAGS  = $(OPTFLAGS) $(INCLUDE) $(XMMS_CFLAGS) $(CDPARANOIA_INC) $(EXTRA_INC)
Whoa, really need those XMMS_CFLAGS and CDPARANOIA_INC?
> +CPLUSPLUSFLAGS  = $(CFLAGS) $(CPLUSPLUSINCLUDE)
> +CPLUSPLUS = $(CC)
Same here,

> +.SUFFIXES: .c .cpp .o
and here
> +
> +# .PHONY: all clean
> +
> +all:	$(LIBNAME)
> +
> +.c.o:
> +	$(CC) -c $(CFLAGS) -o $@ $<
> +.cpp.o:
> +	$(CPLUSPLUS) -c $(CPLUSPLUSFLAGS) -o $@ $<
And yet again here
> +
> +$(LIBNAME):	$(OBJS)
> +	$(AR) r $(LIBNAME) $(OBJS)
> +
> +test: $(LIBNAME) test.c
> +	$(CC) $(CFLAGS) test.c $(LIBNAME) -o test
> +
> +clean:
> +	rm -f *.o *.a *~
Shouldn't it remove test as well?
By the way, are the test and README useful for anything?

> diff -Nur main.sofar/vstream/mkproto.awk main.dev/vstream/mkproto.awk
> --- main.sofar/vstream/mkproto.awk	1970-01-01 00:00:00.000000000 +0000
> +++ main.dev/vstream/mkproto.awk	2004-08-11 03:18:38.186758400 +0000

And what is this file for? I haven't seen it used anywhere.

Also consider patching AUTHORS, Copyright, manpage (at least synopsis,
I'm not sure if anything else), documentation (I'm even less sure if
it's needed. If so, then probably the input formats section,
formats.xml. I don't know, however, if tivo uses some new format) and
MAINTAINERS (if you want the module to be maintained of course).

Torinthiel

-- 
 Waclaw "Torinthiel" Schiller       GG#: 542916, 3073512
   torinthiel(at)megapolis(dot)pl
   gpg: B06901F1 fpr: FAA3 559F CAE9 34DE CDC8  7346 2B6E 39F2 B069 01F1
 "No classmates may be used during this examination"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040812/bdf467e3/attachment.pgp>


More information about the MPlayer-dev-eng mailing list