[Mplayer-cvslog] CVS: main/libmpdemux tvi_v4l.c,1.34,1.35 tv.c,1.36,1.37 tv.h,1.16,1.17

Jindrich Makovicka CVS henry at mplayerhq.hu
Tue Oct 22 09:56:16 CEST 2002


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv8312/libmpdemux

Modified Files:
	tvi_v4l.c tv.c tv.h 
Log Message:
add an option to force audio recording when a tv card reports no audio sources

Index: tvi_v4l.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tvi_v4l.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- tvi_v4l.c	22 Oct 2002 07:29:09 -0000	1.34
+++ tvi_v4l.c	22 Oct 2002 07:56:13 -0000	1.35
@@ -492,7 +492,7 @@
     /* init v4l audio even when we don't capture */
     init_v4l_audio(priv);
 
-    if (!priv->capability.audios) tv_param_noaudio = 1;
+    if (!priv->capability.audios && !tv_param_force_audio) tv_param_noaudio = 1;
 
     /* audio init */
     if (!tv_param_noaudio) {

Index: tv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tv.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- tv.c	19 Oct 2002 20:56:28 -0000	1.36
+++ tv.c	22 Oct 2002 07:56:13 -0000	1.37
@@ -59,6 +59,7 @@
 int tv_param_treble = -1;
 int tv_param_balance = -1;
 int tv_param_forcechan = -1;
+int tv_param_force_audio = 0;
 #ifdef HAVE_ALSA9
 int tv_param_alsa = 0;
 #endif

Index: tv.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tv.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- tv.h	30 Aug 2002 11:37:42 -0000	1.16
+++ tv.h	22 Oct 2002 07:56:13 -0000	1.17
@@ -31,6 +31,7 @@
 extern int tv_param_treble;
 extern int tv_param_balance;
 extern int tv_param_forcechan;
+extern int tv_param_force_audio;
 #ifdef HAVE_ALSA9
 extern int tv_param_alsa;
 #endif




More information about the MPlayer-cvslog mailing list