1
mirror of https://github.com/mpv-player/mpv synced 2024-10-18 10:25:02 +02:00
mpv/libmpdemux/tvi_dummy.c
alex aabf596111 added tv subsystem
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2791 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-09 23:46:06 +00:00

59 lines
786 B
C

#include <stdio.h>
#include "config.h"
#ifdef USE_TV
#include "tv.h"
static tvi_info_t info = {
"NULL-TV",
"dummy",
"alex",
"non-completed"
};
typedef struct {
} priv_t;
#include "tvi_def.h"
tvi_handle_t *tvi_init_dummy(char *device)
{
return new_handle();
}
static int init(priv_t *priv)
{
}
static int close(priv_t *priv)
{
}
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)
{
memset(buffer, 0x77, len);
}
static int get_video_framesize(priv_t *priv)
{
return 0;
}
static int grab_audio_frame(priv_t *priv, char *buffer, int len)
{
memset(buffer, 0x77, len);
}
static int get_audio_framesize(priv_t *priv)
{
return 0;
}
#endif /* USE_TV */