[MPlayer-dev-eng] [PATCH] configurable BINDIR and MANDIR; silencing compiler warnings, continued
Arpi
arpi at thot.banki.hu
Sun Sep 1 16:27:34 CEST 2002
Hi,
> is a fix of dvdcss_open definitions (makes them consistent everywhere).
could you explain tehse changes in detail? i can't see the reason why do
they needed.
> --- MPlayer-20020829/libmpdvdkit2/libdvdcss.c.warn Sat Aug 17 00:50:22 2002
> +++ MPlayer-20020829/libmpdvdkit2/libdvdcss.c Sun Sep 1 01:26:03 2002
> @@ -133,7 +133,7 @@
> * dvdcss_open() returns a handle to be used for all subsequent \e libdvdcss
> * calls. If an error occured, NULL is returned.
> */
> -extern dvdcss_t dvdcss_open ( char *psz_target )
> +extern dvdcss_t dvdcss_open ( const char *psz_target )
> {
> int i_ret;
>
> --- MPlayer-20020829/libmpdvdkit2/dvdcss.h.warn Sat Aug 17 00:50:21 2002
> +++ MPlayer-20020829/libmpdvdkit2/dvdcss.h Sun Sep 1 01:26:03 2002
> @@ -69,7 +69,7 @@
> /*
> * Exported prototypes.
> */
> -extern dvdcss_t dvdcss_open ( char *psz_target );
> +extern dvdcss_t dvdcss_open ( const char *psz_target );
> extern int dvdcss_close ( dvdcss_t );
> extern int dvdcss_title ( dvdcss_t,
> int i_block );
^^ added 'const'. why? afaik it only helps optimization by limiting var to
readonly.
> --- MPlayer-20020829/libmpdvdkit2/dvd_input.c.warn Sat Aug 17 00:50:21 2002
> +++ MPlayer-20020829/libmpdvdkit2/dvd_input.c Sun Sep 1 01:26:03 2002
> @@ -27,7 +27,7 @@
>
> #include "dvdcss.h"
>
> -dvdcss_handle (*DVDcss_open) (const char *);
> +dvdcss_t (*DVDcss_open) (const char *);
> int (*DVDcss_close) (dvdcss_handle);
> int (*DVDcss_seek) (dvdcss_handle, int, int);
> int (*DVDcss_title) (dvdcss_handle, int);
dev->dvdcss = DVDcss_open(target);
and dev->dvdcss is dvdcss_handle
others are ok, i'll apply
A'rpi / Astral & ESP-team
--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu
More information about the MPlayer-dev-eng
mailing list