summaryrefslogtreecommitdiffstats
path: root/stream/stream_tv.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-09-13 17:16:18 +0200
committerwm4 <wm4@nowhere>2019-09-13 17:32:19 +0200
commitb30e85508a305d668db8419556d295a65ab08707 (patch)
treefa48444a183c97fd5081aa0206c5adece43eaf32 /stream/stream_tv.c
parent162e0f5ad92116d1a4fb740d087da2a152686b73 (diff)
downloadmpv-b30e85508a305d668db8419556d295a65ab08707.tar.bz2
mpv-b30e85508a305d668db8419556d295a65ab08707.tar.xz
Remove classic Linux analog TV support, and DVB runtime controls
Linux analog TV support (via tv://) was excessively complex, and whenever I attempted to use it (cameras or loopback devices), it didn't work well, or would have required some major work to update it. It's very much stuck in the analog past (my favorite are the frequency tables in frequencies.c for analog TV channels which don't exist anymore). Especially cameras and such work fine with libavdevice and better than tv://, for example: mpv av://v4l2:/dev/video0 (adding --profile=low-latency --untimed even makes it mostly realtime) Adding a new input layer that targets such "modern" uses would be acceptable, if anyone is interested in it. The old TV code is just too focused on actual analog TV. DVB is rather obscure, but has an active maintainer, so don't remove it. However, the demux/stream ctrl layer must go, so remove controls for channel switching. Most of these could be reimplemented by using the normal method for option runtime changes.
Diffstat (limited to 'stream/stream_tv.c')
-rw-r--r--stream/stream_tv.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/stream/stream_tv.c b/stream/stream_tv.c
deleted file mode 100644
index bb3c48f269..0000000000
--- a/stream/stream_tv.c
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * stream layer for TV Input, based on previous work from Albeu
- *
- * Copyright (C) 2006 Benjamin Zores
- * Original author: Albeu
- *
- * This file is part of mpv.
- *
- * mpv is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * mpv is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with mpv. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#include "config.h"
-
-#include <stdlib.h>
-#include <string.h>
-
-#include "stream.h"
-#include "options/m_option.h"
-#include "tv.h"
-
-#include <stdio.h>
-
-static void
-tv_stream_close (stream_t *stream)
-{
-}
-static int
-tv_stream_open (stream_t *stream)
-{
-
- stream->close=tv_stream_close;
- stream->demuxer = "tv";
-
- return STREAM_OK;
-}
-
-const stream_info_t stream_info_tv = {
- .name = "tv",
- .open = tv_stream_open,
- .protocols = (const char*const[]){ "tv", NULL },
-};