summaryrefslogtreecommitdiffstats
path: root/stream/tvi_v4l2.c
diff options
context:
space:
mode:
authorvoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-01 18:38:00 +0000
committervoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-01 18:38:00 +0000
commite1704a4877adfeb4b233b2e36dfbdab85d351e24 (patch)
tree75ff1abe78acd5e8893076cb0dab8ca3db1433ef /stream/tvi_v4l2.c
parent78d1884e8e4e67b0623a3d06953ed1bcff570030 (diff)
downloadmpv-e1704a4877adfeb4b233b2e36dfbdab85d351e24.tar.bz2
mpv-e1704a4877adfeb4b233b2e36dfbdab85d351e24.tar.xz
tv driver loading rework. As a side effect "-tv driver=help" option is
implemented. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22399 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/tvi_v4l2.c')
-rw-r--r--stream/tvi_v4l2.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/stream/tvi_v4l2.c b/stream/tvi_v4l2.c
index bf9ad46cfe..16e775039e 100644
--- a/stream/tvi_v4l2.c
+++ b/stream/tvi_v4l2.c
@@ -46,8 +46,11 @@ known issues:
#include "tv.h"
#include "audio_in.h"
+#define info tvi_info_v4l2
+static tvi_handle_t *tvi_init_v4l2(char *video_dev, char *audio_dev);
/* information about this file */
-static tvi_info_t info = {
+tvi_info_t tvi_info_v4l2 = {
+ tvi_init_v4l2,
"Video 4 Linux 2 input",
"v4l2",
"Martin Olschewski <olschewski@zpr.uni-koeln.de>",
@@ -814,7 +817,7 @@ static int control(priv_t *priv, int cmd, void *arg)
#define PRIV ((priv_t *) (tvi_handle->priv))
/* handler creator - entry point ! */
-tvi_handle_t *tvi_init_v4l2(char *video_dev, char *audio_dev)
+static tvi_handle_t *tvi_init_v4l2(char *video_dev, char *audio_dev)
{
tvi_handle_t *tvi_handle;