Commit 28e3820e authored by Sam Hocevar's avatar Sam Hocevar

  * Added debian/* files to help generating CSS-enabled non-US packages,
    and changed plugins/dvd/* to reflect this change.
  * Added .xpm icons (fixes lintian warnings).
  * --help output and manpage are now in sync (Closes Debian bug #87478).
  * Fixed Build-dpends entry in debian/control (Closes Debian bug #83707).
parent dc0df7c2
...@@ -471,6 +471,7 @@ install: ...@@ -471,6 +471,7 @@ install:
mkdir -p $(DESTDIR)$(datadir)/videolan mkdir -p $(DESTDIR)$(datadir)/videolan
$(INSTALL) -m 644 share/*.psf $(DESTDIR)$(datadir)/videolan $(INSTALL) -m 644 share/*.psf $(DESTDIR)$(datadir)/videolan
$(INSTALL) -m 644 share/*.png $(DESTDIR)$(datadir)/videolan $(INSTALL) -m 644 share/*.png $(DESTDIR)$(datadir)/videolan
$(INSTALL) -m 644 share/*.xpm $(DESTDIR)$(datadir)/videolan
show: show:
@echo CC: $(CC) @echo CC: $(CC)
...@@ -489,15 +490,11 @@ show: ...@@ -489,15 +490,11 @@ show:
snapshot: snapshot:
rm -rf /tmp/vlc-@VLC_VERSION@* /tmp/vlc-@VLC_VERSION@nocss* rm -rf /tmp/vlc-@VLC_VERSION@* /tmp/vlc-@VLC_VERSION@nocss*
# copy archive in /tmp # copy archive in /tmp
find -type d | while read i ; \ find -type d | grep -v CVS | grep -v '^\.dep' | while read i ; \
do mkdir -p /tmp/vlc-@VLC_VERSION@/$$i ; \ do mkdir -p /tmp/vlc-@VLC_VERSION@/$$i ; \
done done
find debian -mindepth 1 -maxdepth 1 -type d | grep -v CVS | \ find debian -mindepth 1 -maxdepth 1 -type d | \
while read i ; do rm -rf /tmp/vlc-@VLC_VERSION@/$$i ; done while read i ; do rm -rf /tmp/vlc-@VLC_VERSION@/$$i ; done
# CVS entries
find . -type f | grep CVS | while read i ; \
do cp $$i /tmp/vlc-@VLC_VERSION@/$$i ; \
done
# .c .h .in .cpp # .c .h .in .cpp
find include src plugins -type f -name '*.[chi]*' | while read i ; \ find include src plugins -type f -name '*.[chi]*' | while read i ; \
do cp $$i /tmp/vlc-@VLC_VERSION@/$$i ; \ do cp $$i /tmp/vlc-@VLC_VERSION@/$$i ; \
...@@ -507,11 +504,13 @@ snapshot: ...@@ -507,11 +504,13 @@ snapshot:
Makefile.in Makefile.dep configure configure.in install-sh \ Makefile.in Makefile.dep configure configure.in install-sh \
config.sub config.guess todo.pl \ config.sub config.guess todo.pl \
/tmp/vlc-@VLC_VERSION@/ /tmp/vlc-@VLC_VERSION@/
for file in control vlc-gtk.menu vlc.copyright vlc.docs changelog \ for file in control control-css vlc-gtk.menu vlc.copyright vlc.docs \
rules vlc.1 vlc.dirs vlc.menu ; do \ changelog changelog-css rules rules-css vlc.1 vlc.dirs \
vlc.menu ; do \
cp debian/$$file /tmp/vlc-@VLC_VERSION@/debian/ ; done cp debian/$$file /tmp/vlc-@VLC_VERSION@/debian/ ; done
for file in default8x16.psf default8x9.psf gvlc.png vlc.png ; do \ for file in default8x16.psf default8x9.psf gvlc.png vlc.png \
cp share/$$file /tmp/vlc-@VLC_VERSION@/share/ ; done gvlc.xpm vlc.xpm ; do \
cp share/$$file /tmp/vlc-@VLC_VERSION@/share/ ; done
# build css-enabled archives # build css-enabled archives
(cd /tmp ; tar cf vlc-@VLC_VERSION@.tar vlc-@VLC_VERSION@ ; \ (cd /tmp ; tar cf vlc-@VLC_VERSION@.tar vlc-@VLC_VERSION@ ; \
...@@ -520,28 +519,6 @@ snapshot: ...@@ -520,28 +519,6 @@ snapshot:
gzip -f -9 vlc-@VLC_VERSION@.tar ) gzip -f -9 vlc-@VLC_VERSION@.tar )
mv /tmp/vlc-@VLC_VERSION@.tar.gz /tmp/vlc-@VLC_VERSION@.tar.bz2 .. mv /tmp/vlc-@VLC_VERSION@.tar.gz /tmp/vlc-@VLC_VERSION@.tar.bz2 ..
# removing CSS stuff
for x in plugins/dvd/dvd.c plugins/dvd/dvd_css.c ; do \
rm -f /tmp/vlc-@VLC_VERSION@/$$x ; \
perl -ne 'if (/^#e(lse|ndif).*HAVE_CSS/) { $$i=0; } \
if (/^#if.*HAVE_CSS/) { $$i=1; } \
elsif (!$$i && !/^#.*HAVE_CSS/) { print $$_; }' \
< $$x >| /tmp/vlc-@VLC_VERSION@/$$x ; \
done
rm -f /tmp/vlc-@VLC_VERSION@/plugins/dvd/dvd_csstables.c
rm -f /tmp/vlc-@VLC_VERSION@/debian/changelog
sed 's/\(^vlc ([^-]*\)-/\1nocss-/' < debian/changelog \
> /tmp/vlc-@VLC_VERSION@/debian/changelog
# build nocss archives
(cd /tmp ; mv vlc-@VLC_VERSION@ vlc-@VLC_VERSION@nocss ; \
tar cf vlc-@VLC_VERSION@nocss.tar vlc-@VLC_VERSION@nocss ; \
bzip2 -f -9 < vlc-@VLC_VERSION@nocss.tar \
> vlc-@VLC_VERSION@nocss.tar.bz2 ; \
gzip -f -9 vlc-@VLC_VERSION@nocss.tar )
mv /tmp/vlc-@VLC_VERSION@nocss.tar.gz \
/tmp/vlc-@VLC_VERSION@nocss.tar.bz2 ..
# clean up # clean up
rm -rf /tmp/vlc-@VLC_VERSION@* rm -rf /tmp/vlc-@VLC_VERSION@*
......
...@@ -3478,24 +3478,30 @@ fi ...@@ -3478,24 +3478,30 @@ fi
# Check whether --with-ggi or --without-ggi was given. # Check whether --with-ggi or --without-ggi was given.
if test "${with_ggi+set}" = set; then if test "${with_ggi+set}" = set; then
withval="$with_ggi" withval="$with_ggi"
PLUGINS=${PLUGINS}"ggi "; if test "x$withval" != "xno";
if test "x$withval" != "xyes";
then then
LIB_GGI="-l"$withval PLUGINS=${PLUGINS}"ggi ";
else if test "x$withval" != "xyes";
LIB_GGI="-lggi" then
LIB_GGI="-l"$withval
else
LIB_GGI="-lggi"
fi
fi fi
fi fi
# Check whether --with-sdl or --without-sdl was given. # Check whether --with-sdl or --without-sdl was given.
if test "${with_sdl+set}" = set; then if test "${with_sdl+set}" = set; then
withval="$with_sdl" withval="$with_sdl"
PLUGINS=${PLUGINS}"sdl "; if test "x$withval" != "xno";
if test "x$withval" != "xyes";
then then
LIB_SDL="L/usr/X11R6/lib -l"$withval PLUGINS=${PLUGINS}"sdl ";
else if test "x$withval" != "xyes";
LIB_SDL="-L/usr/X11R6/lib -lSDL" then
LIB_SDL="L/usr/X11R6/lib -l"$withval
else
LIB_SDL="-L/usr/X11R6/lib -lSDL"
fi
fi fi
fi fi
...@@ -3507,12 +3513,15 @@ fi ...@@ -3507,12 +3513,15 @@ fi
# Check whether --with-glide or --without-glide was given. # Check whether --with-glide or --without-glide was given.
if test "${with_glide+set}" = set; then if test "${with_glide+set}" = set; then
withval="$with_glide" withval="$with_glide"
PLUGINS=${PLUGINS}"glide "; if test "x$withval" != "xno";
if test "x$withval" != "xyes";
then then
LIB_GLIDE="-l"$withval PLUGINS=${PLUGINS}"glide ";
else if test "x$withval" != "xyes";
LIB_GLIDE="-lglide2x" then
LIB_GLIDE="-l"$withval
else
LIB_GLIDE="-lglide2x"
fi
fi fi
fi fi
...@@ -3554,17 +3563,17 @@ if test "${enable_alsa+set}" = set; then ...@@ -3554,17 +3563,17 @@ if test "${enable_alsa+set}" = set; then
enableval="$enable_alsa" enableval="$enable_alsa"
if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'` if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
echo "configure:3558: checking for sys/asoundlib.h" >&5 echo "configure:3567: checking for sys/asoundlib.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 3563 "configure" #line 3572 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/asoundlib.h> #include <sys/asoundlib.h>
EOF EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } { (eval echo configure:3577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then if test -z "$ac_err"; then
rm -rf conftest* rm -rf conftest*
...@@ -3581,7 +3590,7 @@ fi ...@@ -3581,7 +3590,7 @@ fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6 echo "$ac_t""yes" 1>&6
echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
echo "configure:3585: checking for main in -lasound" >&5 echo "configure:3594: checking for main in -lasound" >&5
ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'` ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
...@@ -3589,14 +3598,14 @@ else ...@@ -3589,14 +3598,14 @@ else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-lasound $LIBS" LIBS="-lasound $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 3593 "configure" #line 3602 "configure"
#include "confdefs.h" #include "confdefs.h"
int main() { int main() {
main() main()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else
......
...@@ -167,21 +167,27 @@ AC_ARG_ENABLE(fb, ...@@ -167,21 +167,27 @@ AC_ARG_ENABLE(fb,
[if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; fi]) [if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; fi])
AC_ARG_WITH(ggi, AC_ARG_WITH(ggi,
[ --with-ggi[=name] GGI support (default disabled)], [ --with-ggi[=name] GGI support (default disabled)],
[ PLUGINS=${PLUGINS}"ggi "; [ if test "x$withval" != "xno";
if test "x$withval" != "xyes";
then then
LIB_GGI="-l"$withval PLUGINS=${PLUGINS}"ggi ";
else if test "x$withval" != "xyes";
LIB_GGI="-lggi" then
LIB_GGI="-l"$withval
else
LIB_GGI="-lggi"
fi
fi ]) fi ])
AC_ARG_WITH(sdl, AC_ARG_WITH(sdl,
[ --with-sdl[=name] SDL support (default enabled)], [ --with-sdl[=name] SDL support (default enabled)],
[ PLUGINS=${PLUGINS}"sdl "; [ if test "x$withval" != "xno";
if test "x$withval" != "xyes";
then then
LIB_SDL="L/usr/X11R6/lib -l"$withval PLUGINS=${PLUGINS}"sdl ";
else if test "x$withval" != "xyes";
LIB_SDL="-L/usr/X11R6/lib -lSDL" then
LIB_SDL="L/usr/X11R6/lib -l"$withval
else
LIB_SDL="-L/usr/X11R6/lib -lSDL"
fi
fi ]) fi ])
if test "x$withval" = "x"; if test "x$withval" = "x";
then then
...@@ -190,12 +196,15 @@ AC_ARG_WITH(sdl, ...@@ -190,12 +196,15 @@ AC_ARG_WITH(sdl,
fi fi
AC_ARG_WITH(glide, AC_ARG_WITH(glide,
[ --with-glide[=name] Glide (3dfx) support (default disabled)], [ --with-glide[=name] Glide (3dfx) support (default disabled)],
[ PLUGINS=${PLUGINS}"glide "; [ if test "x$withval" != "xno";
if test "x$withval" != "xyes";
then then
LIB_GLIDE="-l"$withval PLUGINS=${PLUGINS}"glide ";
else if test "x$withval" != "xyes";
LIB_GLIDE="-lglide2x" then
LIB_GLIDE="-l"$withval
else
LIB_GLIDE="-lglide2x"
fi
fi ]) fi ])
AC_ARG_ENABLE(ncurses, AC_ARG_ENABLE(ncurses,
[ --enable-ncurses ncurses interface support (default disabled)], [ --enable-ncurses ncurses interface support (default disabled)],
......
vlc (0.2.62-2) unstable; urgency=low
* Removed a few lintian warnings.
-- Samuel Hocevar <sam@zoy.org> Sat, 3 Mar 2001 10:29:31 +0100
vlc (0.2.62-1) unstable; urgency=low
* Updated vlc.1 manpage (Closes: #87478).
* Fixed debian/control (Closes: #83707).
* The framebuffer plugin doesn't hijack ^C anymore (Closes: #87500).
-- Samuel Hocevar <sam@zoy.org> Fri, 2 Mar 2001 17:32:24 +0100
vlc (0.2.62-1) unstable; urgency=low vlc (0.2.62-1) unstable; urgency=low
* New release. Glide and GGI packages build again. * New release. Glide and GGI packages build again.
......
vlc-css (0.2.62-2) unstable; urgency=low
* Removed a few lintian warnings.
-- Samuel Hocevar <sam@zoy.org> Sat, 3 Mar 2001 10:29:31 +0100
vlc-css (0.2.62-1) unstable; urgency=low
* Initial Release.
-- Samuel Hocevar <sam@zoy.org> Fri, 2 Mar 2001 17:58:26 +0100
Local variables:
mode: debian-changelog
End:
Source: vlc-css
Section: non-US/main
Priority: optional
Maintainer: Samuel Hocevar <sam@zoy.org>
Build-Depends: debhelper (>=2.2.0), xlib6g-dev
Standards-Version: 3.0.1
Package: vlc-css
Architecture: any
Depends: ${shlibs:Depends}, vlc
Description: CSS plugin for the VideoLAN Client
VideoLAN is a free MPEG, MPEG2 and DVD software solution.
.
This plugin adds DVD support with CSS decryption to the VideoLAN Client.
...@@ -61,7 +61,8 @@ install: build ...@@ -61,7 +61,8 @@ install: build
mv debian/vlc/usr/bin/gvlc debian/vlc-gtk/usr/bin/ mv debian/vlc/usr/bin/gvlc debian/vlc-gtk/usr/bin/
mkdir -p debian/vlc-gtk/usr/share/videolan/ mkdir -p debian/vlc-gtk/usr/share/videolan/
mv debian/vlc/usr/share/videolan/gvlc.png \ mv debian/vlc/usr/share/videolan/gvlc.png \
debian/vlc-gtk/usr/share/videolan/ debian/vlc/usr/share/videolan/gvlc.xpm \
debian/vlc-gtk/usr/share/videolan/
mkdir -p debian/vlc-gtk/usr/share/man/man1/ mkdir -p debian/vlc-gtk/usr/share/man/man1/
ln -s vlc.1.gz debian/vlc-gtk/usr/share/man/man1/gvlc.1.gz ln -s vlc.1.gz debian/vlc-gtk/usr/share/man/man1/gvlc.1.gz
......
#!/usr/bin/make -f
# debian/rules for the VideoLAN Client - uses debhelper.
# based on Joey Hess's one.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This is the debhelper compatability version to use.
export DH_COMPAT=3
build: build-stamp
build-stamp:
dh_testdir
if [ $(DEB_BUILD_ARCH) = i386 ]; then \
./configure --prefix=/usr \
--mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info \
--disable-gnome --disable-gtk --enable-fb --without-glide \
--without-ggi --without-sdl --disable-esd --disable-alsa \
--disable-ppro ; \
else \
./configure --prefix=/usr \
--mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info \
--disable-gnome --disable-gtk --enable-fb --without-ggi \
--without-sdl --disable-esd --disable-alsa; \
fi
$(MAKE) lib/dvd.so
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
-$(MAKE) distclean
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# make symlinks for packages
mkdir -p debian/vlc-css/usr/share/doc/
ln -s vlc debian/vlc-css/usr/share/doc/vlc-css
mkdir -p debian/vlc-css/usr/lib/videolan/vlc/
cp lib/dvd.so debian/vlc-css/usr/lib/videolan/vlc/dvd-css.so
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
# dh_testversion
dh_testdir
dh_testroot
# dh_installdebconf
dh_installdocs
dh_installexamples
# dh_installmenu
# dh_installemacsen
# dh_installpam
# dh_installinit
dh_installcron
# dh_installmanpages
dh_installinfo
# dh_undocumented
dh_installchangelogs
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_makeshlibs
dh_installdeb
# dh_perl
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
?package(vlc-gtk):command="/usr/bin/gvlc" hotkey="V" needs="X11" \ ?package(vlc-gtk):command="/usr/bin/gvlc" hotkey="V" needs="X11" \
section="Apps/Viewers" title="Gnome/Gtk VideoLAN Client" \ section="Apps/Viewers" title="Gnome/Gtk VideoLAN Client" \
icon="/usr/share/videolan/gvlc.png" icon="/usr/share/videolan/gvlc.xpm"
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
.\" .sp <n> insert n+1 empty lines .\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7) .\" for manpage-specific macros, see man(7)
.SH NAME .SH NAME
vlc, fbvlc, gvlc \- The VideoLAN Client vlc, gvlc, kvlc \- The VideoLAN Client
.SH SYNOPSIS .SH SYNOPSIS
.B vlc .B vlc
.RI [ OPTIONS ] .RI [ OPTIONS ]
...@@ -35,6 +35,9 @@ A summary of options is included below. ...@@ -35,6 +35,9 @@ A summary of options is included below.
.B \-\-intf <module> .B \-\-intf <module>
Specify an interface module: "gnome", "curses", "shell", for instance. Specify an interface module: "gnome", "curses", "shell", for instance.
.TP .TP
.B \-\-warning <level>
Select the warning level. 0 is the most verbose, 3 is almost mute.
.TP
.B \-\-noaudio .B \-\-noaudio
Disable audio output. Disable audio output.
.TP .TP
...@@ -85,12 +88,14 @@ heuristics based on CPU usage. ...@@ -85,12 +88,14 @@ heuristics based on CPU usage.
displays I and P images and every second B image, and `IPB' forces displays I and P images and every second B image, and `IPB' forces
displaying of all images. displaying of all images.
Note that the vlc is certainly going to crash if you ask it to Note that vlc is certainly going to crash if you ask it to
display more images than your CPU can cope with. display more images than your CPU can cope with.
.TP .TP
.B vlc .B \-t, \-\-dvdtitle <title>
opens /dev/dvd, but this behaviour may be overridden by the vlc_dvd_device Choose the DVD title. Most movies on DVDs start on the first title, but you may want to manually select another title.
environment variable (see below). .TP
.B \-T, \-\-dvdchapter <title>
Choose the DVD chapter. DVDs are divided into titles, which in turn are divided into chapters.
.TP .TP
.B \-a, \-\-dvdaudio [ ac3 | lpcm | mpeg | off ] .B \-a, \-\-dvdaudio [ ac3 | lpcm | mpeg | off ]
Choose the audio channel type. Most DVDs have AC3 audio channels, but Choose the audio channel type. Most DVDs have AC3 audio channels, but
...@@ -105,12 +110,18 @@ audio channel will also depend on the channel type. ...@@ -105,12 +110,18 @@ audio channel will also depend on the channel type.
.B \-s, \-\-dvdsubtitle [ 0\-31 ] .B \-s, \-\-dvdsubtitle [ 0\-31 ]
Select the subtitle channel, if there is one in the stream. Select the subtitle channel, if there is one in the stream.
.TP .TP
.B \-\-novlans .B \-\-input <method>
Disable VLANs support. Choose the input method, "dvd", "ps", "ts" for instance.
.TP
.B \-\-vlans
Enable VLANs support. This feature isn't activated yet.
.TP .TP
.B \-\-server <host>, \-\-port <port> .B \-\-server <host>, \-\-port <port>
Choose the video server address and port. Choose the video server address and port.
.TP .TP
.B \-\-broadcast
Set broadcast mode for network input.
.TP
.B \-h, \-\-help .B \-h, \-\-help
Print help and exit. Print help and exit.
.TP .TP
...@@ -150,6 +161,8 @@ also accepts a lot of parameters to customize its behaviour. ...@@ -150,6 +161,8 @@ also accepts a lot of parameters to customize its behaviour.
.TP .TP
.B DVD parameters: .B DVD parameters:
vlc_dvd_device=<device> DVD device vlc_dvd_device=<device> DVD device
vlc_input_title=<title> title number
vlc_input_chapter=<chapter> chapter number
vlc_audio={ac3|lpcm|mpeg|off} audio type vlc_audio={ac3|lpcm|mpeg|off} audio type
vlc_channel=[0-15] audio channel vlc_channel=[0-15] audio channel
vlc_subtitle=[0-31] subtitle channel vlc_subtitle=[0-31] subtitle channel
...@@ -166,5 +179,4 @@ also accepts a lot of parameters to customize its behaviour. ...@@ -166,5 +179,4 @@ also accepts a lot of parameters to customize its behaviour.
.BR vls (1), vlms (1) .BR vls (1), vlms (1)
.br .br
.SH AUTHOR .SH AUTHOR
This manual page was written by the VideoLAN Team <videolan@via.ecp.fr>, This manual page was written by Samuel Hocevar <sam@zoy.org>, for the Debian GNU/Linux system (but may be used by others).
for the Debian GNU/Linux system (but may be used by others).
?package(vlc):command="/usr/bin/vlc" hotkey="V" needs="X11" \ ?package(vlc):command="/usr/bin/vlc" hotkey="V" needs="X11" \
section="Apps/Viewers" title="VideoLAN Client" \ section="Apps/Viewers" title="VideoLAN Client" \
icon="/usr/share/videolan/vlc.png" icon="/usr/share/videolan/vlc.xpm"
...@@ -20,14 +20,18 @@ ...@@ -20,14 +20,18 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/ *****************************************************************************/
#define MODULE_NAME dvd
#include "modules_inner.h"
/***************************************************************************** /*****************************************************************************
* Preamble * Preamble
*****************************************************************************/ *****************************************************************************/
#include "defs.h" #include "defs.h"
#ifdef HAVE_CSS
#define MODULE_NAME dvd-css
#else /* HAVE_CSS */
#define MODULE_NAME dvd
#endif /* HAVE_CSS */
#include "modules_inner.h"
#include <stdlib.h> /* malloc(), free() */ #include <stdlib.h> /* malloc(), free() */
#include <string.h> /* strdup() */ #include <string.h> /* strdup() */
...@@ -64,9 +68,9 @@ MODULE_INIT ...@@ -64,9 +68,9 @@ MODULE_INIT
p_module->psz_name = MODULE_STRING; p_module->psz_name = MODULE_STRING;
#ifdef HAVE_CSS #ifdef HAVE_CSS
p_module->psz_longname = "full DVD input module with CSS decryption"; p_module->psz_longname = "full DVD input module with CSS decryption";
#else #else /* HAVE_CSS */
p_module->psz_longname = "DVD input module, CSS decryption disabled"; p_module->psz_longname = "DVD input module, CSS decryption disabled";
#endif #endif /* HAVE_CSS */
p_module->psz_version = VERSION; p_module->psz_version = VERSION;
p_module->i_capabilities = MODULE_CAPABILITY_NULL p_module->i_capabilities = MODULE_CAPABILITY_NULL
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* dvd_css.c: Functions for DVD authentification and unscrambling * dvd_css.c: Functions for DVD authentification and unscrambling
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2001 VideoLAN * Copyright (C) 1999-2001 VideoLAN
* $Id: dvd_css.c,v 1.17 2001/03/03 07:07:01 stef Exp $ * $Id: dvd_css.c,v 1.18 2001/03/03 11:01:07 sam Exp $
* *
* Author: Stphane Borel <stef@via.ecp.fr> * Author: Stphane Borel <stef@via.ecp.fr>
* *
...@@ -103,12 +103,11 @@ int CSSTest( int i_fd ) ...@@ -103,12 +103,11 @@ int CSSTest( int i_fd )
*****************************************************************************/ *****************************************************************************/
css_t * CSSInit( int i_fd ) css_t * CSSInit( int i_fd )
{ {
css_t * p_css;
#ifdef HAVE_CSS #ifdef HAVE_CSS
/* structures defined in cdrom.h or dvdio.h */ /* structures defined in cdrom.h or dvdio.h */
dvd_struct dvd; dvd_struct dvd;
dvd_authinfo auth_info; dvd_authinfo auth_info;
css_t * p_css;
int i_error = -1; int i_error = -1;
int i; int i;
...@@ -323,13 +322,14 @@ css_t * CSSInit( int i_fd ) ...@@ -323,13 +322,14 @@ css_t * CSSInit( int i_fd )
case 1: case 1:
return p_css; return p_css;
} }
return p_css;
#else /* HAVE_CSS */ #else /* HAVE_CSS */
intf_ErrMsg( "css error: CSS decryption is disabled in this module" ); intf_ErrMsg( "css error: CSS decryption is disabled in this module" );
p_css = NULL; return NULL;
#endif /* HAVE_CSS */ #endif /* HAVE_CSS */
return p_css;
} }
/***************************************************************************** /*****************************************************************************
...@@ -339,7 +339,9 @@ void CSSEnd( css_t * p_css ) ...@@ -339,7 +339,9 @@ void CSSEnd( css_t * p_css )
{ {
#ifdef HAVE_CSS #ifdef HAVE_CSS
free( p_css ); free( p_css );
#endif #else /* HAVE_CSS */
;
#endif /* HAVE_CSS */
} }
/***************************************************************************** /*****************************************************************************
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* -dvd_udf to find files * -dvd_udf to find files
***************************************************************************** *****************************************************************************
* Copyright (C) 1998-2001 VideoLAN * Copyright (C) 1998-2001 VideoLAN
* $Id: input_dvd.c,v 1.25 2001/03/03 07:07:01 stef Exp $ * $Id: input_dvd.c,v 1.26 2001/03/03 11:01:07 sam Exp $
* *
* Author: Stphane Borel <stef@via.ecp.fr> * Author: Stphane Borel <stef@via.ecp.fr>
* *
...@@ -29,14 +29,18 @@ ...@@ -29,14 +29,18 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/ *****************************************************************************/
#define MODULE_NAME dvd
#include "modules_inner.h"
/***************************************************************************** /*****************************************************************************
* Preamble * Preamble
*****************************************************************************/ *****************************************************************************/
#include "defs.h" #include "defs.h"
#ifdef HAVE_CSS
#define MODULE_NAME dvd-css
#else /* HAVE_CSS */
#define MODULE_NAME dvd-nocss
#endif /* HAVE_CSS */
#include "modules_inner.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
...@@ -309,13 +313,21 @@ static int DVDProbe( probedata_t *p_data ) ...@@ -309,13 +313,21 @@ static int DVDProbe( probedata_t *p_data )
if( TestMethod( INPUT_METHOD_VAR, "dvd" ) ) if( TestMethod( INPUT_METHOD_VAR, "dvd" ) )
{ {
#ifdef HAVE_CSS
return( 999 ); return( 999 );
#else /* HAVE_CSS */
return( 998 );
#endif /* HAVE_CSS */
} }
if( ( strlen(psz_name) > 4 ) && !strncasecmp( psz_name, "dvd:", 4 ) ) if( ( strlen(psz_name) > 4 ) && !strncasecmp( psz_name, "dvd:", 4 ) )
{ {
/* If the user specified "dvd:" then it's probably a DVD */ /* If the user specified "dvd:" then it's probably a DVD */
#ifdef HAVE_CSS
i_score = 100; i_score = 100;
#else /* HAVE_CSS */
i_score = 90;
#endif /* HAVE_CSS */
psz_name += 4; psz_name += 4;
} }
......
This diff is collapsed.
This diff is collapsed.
...@@ -762,9 +762,9 @@ static void Usage( int i_fashion ) ...@@ -762,9 +762,9 @@ static void Usage( int i_fashion )
return; return;
/* Interface parameters */ /* Interface parameters */
intf_MsgImm( "\nInterface parameters:\n" intf_MsgImm( "\nInterface parameters:"
"\n " INTF_METHOD_VAR "=<method name> \tinterface method" "\n " INTF_METHOD_VAR "=<method name> \tinterface method"
"\n " INTF_INIT_SCRIPT_VAR "=<filename> \tinitialization script" "\n " INTF_INIT_SCRIPT_VAR "=<filename> \tinitialization script"
"\n " INTF_CHANNELS_VAR "=<filename> \tchannels list" "\n " INTF_CHANNELS_VAR "=<filename> \tchannels list"
"\n " INTF_WARNING_VAR "=<level> \twarning level" ); "\n " INTF_WARNING_VAR "=<level> \twarning level" );
...@@ -793,14 +793,14 @@ static void Usage( int i_fashion ) ...@@ -793,14 +793,14 @@ static void Usage( int i_fashion )
/* DVD parameters */ /* DVD parameters */
intf_MsgImm( "\nDVD parameters:" intf_MsgImm( "\nDVD parameters:"
"\n " INPUT_DVD_DEVICE_VAR "=<device> \tDVD device" "\n " INPUT_DVD_DEVICE_VAR "=<device> \tDVD device"
"\n " INPUT_TITLE_VAR "=<title> \ttitle number" "\n " INPUT_TITLE_VAR "=<title> \ttitle number"
"\n " INPUT_CHAPTER_VAR "=<chapter> \tchapter number" "\n " INPUT_CHAPTER_VAR "=<chapter> \tchapter number"
"\n " INPUT_AUDIO_VAR "={ac3|lpcm|mpeg|off} \taudio type" "\n " INPUT_AUDIO_VAR "={ac3|lpcm|mpeg|off} \taudio type"
"\n " INPUT_CHANNEL_VAR "=[0-15] \taudio channel" "\n " INPUT_CHANNEL_VAR "=[0-15] \taudio channel"
"\n " INPUT_SUBTITLE_VAR "=[0-31] \tsubtitle channel" ); "\n " INPUT_SUBTITLE_VAR "=[0-31] \tsubtitle channel" );
/* Input parameters */ /* Input parameters */
intf_MsgImm( "\nInput parameters:\n" intf_MsgImm( "\nInput parameters:"
"\n " INPUT_SERVER_VAR "=<hostname> \tvideo server" "\n " INPUT_SERVER_VAR "=<hostname> \tvideo server"
"\n " INPUT_PORT_VAR "=<port> \tvideo server port" "\n " INPUT_PORT_VAR "=<port> \tvideo server port"
"\n " INPUT_IFACE_VAR "=<interface> \tnetwork interface" "\n " INPUT_IFACE_VAR "=<interface> \tnetwork interface"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment