From e033f3c8bcf66de44b0cc25e543a85f19fc9f964 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 9 Jun 2014 23:38:28 +0200 Subject: command: redo ancient TV/DVB/PVR commands Convert all these commands to properties. (Except tv_last_channel, not sure what to do with this.) Also, internally, don't access stream details directly, but dispatch commands with stream ctrls. Many of the new properties are a bit strange, because they're write- only. Also remove some OSD output these commands produced, because I couldn't be bothered to port these. In general, this makes everything much cleaner, and will also make it easier to e.g. move the demuxer to its own thread. Don't bother updating input.conf, but changes.rst documents how old commands map to the new ones. Mostly untested, due to lack of hardware. --- demux/demux.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'demux/demux.h') diff --git a/demux/demux.h b/demux/demux.h index 81568b96b9..2bcfc241c1 100644 --- a/demux/demux.h +++ b/demux/demux.h @@ -56,6 +56,13 @@ enum demux_ctrl { DEMUXER_CTRL_GET_START_TIME, DEMUXER_CTRL_RESYNC, DEMUXER_CTRL_IDENTIFY_PROGRAM, + DEMUXER_CTRL_STREAM_CTRL, // stupid workaround for legacy TV code +}; + +struct demux_ctrl_stream_ctrl { + int ctrl; + void *arg; + int res; }; #define SEEK_ABSOLUTE (1 << 0) -- cgit v1.2.3