summaryrefslogtreecommitdiffstats
path: root/libmpdemux/tvi_v4l.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-12 10:40:38 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-12 10:40:38 +0000
commite40b5a0509ebee9406e4651c99f3c7f89bd89ac8 (patch)
tree4bbc67311223c1ba0d746b9cf4a375e119220ad3 /libmpdemux/tvi_v4l.c
parent90bfc582ca7c54b57c2c303ec8b43b00dd45d8d9 (diff)
downloadmpv-e40b5a0509ebee9406e4651c99f3c7f89bd89ac8.tar.bz2
mpv-e40b5a0509ebee9406e4651c99f3c7f89bd89ac8.tar.xz
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
- tvi interface changes, grab_audio/video now returns timestamp! - tv demuxer gets 'ds' hint too - some verbose skip/dup counters to mencoder - tvi_bsdbt848.c updates - aviwrite/mencoder size types int->off_t git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5573 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/tvi_v4l.c')
-rw-r--r--libmpdemux/tvi_v4l.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/libmpdemux/tvi_v4l.c b/libmpdemux/tvi_v4l.c
index d6df62d35d..c5a05aff83 100644
--- a/libmpdemux/tvi_v4l.c
+++ b/libmpdemux/tvi_v4l.c
@@ -63,7 +63,6 @@ typedef struct {
struct video_mmap *buf;
int nbuf;
int queue;
- int currentframe;
/* audio */
int audio_id;
@@ -807,13 +806,11 @@ static int control(priv_t *priv, int cmd, void *arg)
return(TVI_CONTROL_UNKNOWN);
}
-static int grab_video_frame(priv_t *priv, char *buffer, int len)
+static double grab_video_frame(priv_t *priv, char *buffer, int len)
{
int frame = priv->queue % priv->nbuf;
int nextframe = (priv->queue+1) % priv->nbuf;
- priv->currentframe++;
-
mp_dbg(MSGT_TV, MSGL_DBG2, "grab_video_frame(priv=%p, buffer=%p, len=%d)\n",
priv, buffer, len);
@@ -841,7 +838,7 @@ static int grab_video_frame(priv_t *priv, char *buffer, int len)
/* copy the actual frame */
memcpy(buffer, priv->mmap+priv->mbuf.offsets[frame], len);
- return(priv->currentframe);
+ return(0);
}
static int get_video_framesize(priv_t *priv)
@@ -849,7 +846,7 @@ static int get_video_framesize(priv_t *priv)
return(priv->bytesperline * priv->height);
}
-static int grab_audio_frame(priv_t *priv, char *buffer, int len)
+static double grab_audio_frame(priv_t *priv, char *buffer, int len)
{
int in_len = 0;
// int max_tries = 128;
@@ -874,7 +871,7 @@ static int grab_audio_frame(priv_t *priv, char *buffer, int len)
}
// printf("tries: %d\n", 128-max_tries);
- return(in_len);
+ return 0; //(in_len); // FIXME!
}
static int get_audio_framesize(priv_t *priv)