changeset 10538:dd2572331142

10l - some forgotten ifdefs
author henry
date Thu, 07 Aug 2003 12:40:15 +0000
parents 31f12f99118b
children cf5a8eee1597
files cfg-common.h libmpdemux/demuxer.c libmpdemux/tvi_v4l2.c
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/cfg-common.h	Thu Aug 07 12:24:35 2003 +0000
+++ b/cfg-common.h	Thu Aug 07 12:40:15 2003 +0000
@@ -304,7 +304,7 @@
 	{"contrast", &tv_param_contrast, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
 	{"hue", &tv_param_hue, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
 	{"saturation", &tv_param_saturation, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
-#ifdef HAVE_TV_V4L
+#if defined(HAVE_TV_V4L) || defined(HAVE_TV_V4L2)
 	{"amode", &tv_param_amode, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL},
 	{"volume", &tv_param_volume, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL},
 	{"bass", &tv_param_bass, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL},
--- a/libmpdemux/demuxer.c	Thu Aug 07 12:24:35 2003 +0000
+++ b/libmpdemux/demuxer.c	Thu Aug 07 12:40:15 2003 +0000
@@ -146,7 +146,7 @@
 
 extern int demux_tv_fill_buffer(demuxer_t *demux, demux_stream_t *ds);
 extern int demux_open_tv(demuxer_t *demuxer);
-#if defined(USE_TV) && defined(HAVE_TV_V4L)
+#if defined(USE_TV) && (defined(HAVE_TV_V4L) || defined(HAVE_TV_V4L2))
 extern void demux_close_tv(demuxer_t *demuxer);
 #endif
 #endif
@@ -177,7 +177,7 @@
       demux_close_nuv(demuxer); break;
     case DEMUXER_TYPE_MPEG_TY:
       demux_close_ty(demuxer); break;
-#if defined(USE_TV) && defined(HAVE_TV_V4L)
+#if defined(USE_TV) && (defined(HAVE_TV_V4L) || defined(HAVE_TV_V4L2))
     case DEMUXER_TYPE_TV:
 	demux_close_tv(demuxer); break;
 #endif
--- a/libmpdemux/tvi_v4l2.c	Thu Aug 07 12:24:35 2003 +0000
+++ b/libmpdemux/tvi_v4l2.c	Thu Aug 07 12:40:15 2003 +0000
@@ -1619,4 +1619,4 @@
     return(priv->audio_in.blocksize);
 }
 
-#endif /* USE_TV || HAVE_TV_V4L2 */
+#endif /* USE_TV && HAVE_TV_V4L2 */