[MPlayer-dev-eng] [PATCH] Fix tvi_bsdbt848.c compille on BSD
Bernd Ernesti
mplayer-dev-eng at lists.veego.de
Sun Aug 12 19:40:46 CEST 2007
Hi,
see attached patch to fix this:
tvi_bsdbt848.c: In function 'tvi_init_bsdbt848':
tvi_bsdbt848.c:205: error: 'tv_param_t' has no member named 'adevice'
tvi_bsdbt848.c:212: error: 'tv_param_t' has no member named 'adevice'
and a second one to remove these warnings:
tvi_bsdbt848.c: In function 'grabimmediate_video_frame':
tvi_bsdbt848.c:726: warning: unused variable 'curtime'
tvi_bsdbt848.c: In function 'grab_video_frame':
tvi_bsdbt848.c:749: warning: unused variable 'curtime'
tvi_bsdbt848.c: In function 'grab_audio_frame':
tvi_bsdbt848.c:788: warning: unused variable 'bytesavail'
where there is still one warning left because it is only used by v4l*:
tvi_def.h:50: warning: 'free_handle' defined but not used
Bernd
-------------- next part --------------
Index: tv.h
===================================================================
--- tv.h (revision 24050)
+++ tv.h (working copy)
@@ -41,8 +41,8 @@
#if defined(HAVE_ALSA9) || defined(HAVE_ALSA1X)
int alsa;
#endif
+#endif
char* adevice;
-#endif
int brightness;
int contrast;
int hue;
-------------- next part --------------
Index: tvi_bsdbt848.c
===================================================================
--- tvi_bsdbt848.c (revision 24050)
+++ tvi_bsdbt848.c (working copy)
@@ -723,7 +723,6 @@
static double grabimmediate_video_frame(priv_t *priv, char *buffer, int len)
{
-struct timeval curtime;
sigset_t sa_mask;
if(priv->videoready == FALSE) return(0);
@@ -746,7 +745,6 @@
static double grab_video_frame(priv_t *priv, char *buffer, int len)
{
-struct timeval curtime;
double timestamp=0;
sigset_t sa_mask;
@@ -785,7 +783,6 @@
struct timeval curtime;
double curpts;
double timeskew;
-int bytesavail;
int bytesread;
int ret;
More information about the MPlayer-dev-eng
mailing list