[Mplayer-cvslog] CVS: main/libmpdemux tvi_v4l.c,1.41,1.42
Jindrich Makovicka CVS
henry at mplayerhq.hu
Tue Dec 3 14:24:29 CET 2002
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv7811
Modified Files:
tvi_v4l.c
Log Message:
set channel count to a saner value if the card reports an unknown audio mode
Index: tvi_v4l.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tvi_v4l.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- tvi_v4l.c 23 Nov 2002 10:58:08 -0000 1.41
+++ tvi_v4l.c 3 Dec 2002 13:24:10 -0000 1.42
@@ -357,6 +357,11 @@
case VIDEO_SOUND_STEREO:
priv->audio_channels[i] = 2;
break;
+ default:
+ mp_msg(MSGT_TV, MSGL_ERR, "Card reports an unknown audio mode !\n");
+ mp_msg(MSGT_TV, MSGL_ERR, "Trying two channel audio. Use forcechan to override.\n");
+ priv->audio_channels[i] = 2;
+ break;
}
if (reqmode >= 0 && priv->audio[i].mode != reqmode) {
More information about the MPlayer-cvslog
mailing list