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. --- DOCS/man/en/changes.rst | 26 ++++++++++++++++++++++++++ DOCS/man/en/input.rst | 7 ++----- 2 files changed, 28 insertions(+), 5 deletions(-) (limited to 'DOCS') diff --git a/DOCS/man/en/changes.rst b/DOCS/man/en/changes.rst index a60cced3e6..1387d03372 100644 --- a/DOCS/man/en/changes.rst +++ b/DOCS/man/en/changes.rst @@ -274,6 +274,32 @@ input.conf and Slave Commands +--------------------------------+----------------------------------------+ | ``af_switch``, ``af_add``, ... | ``af set|add|...`` | +--------------------------------+----------------------------------------+ + | ``tv_start_scan`` | ``set tv-scan yes`` | + +--------------------------------+----------------------------------------+ + | ``tv_set_channel `` | ``set tv-channel `` | + +--------------------------------+----------------------------------------+ + | ``tv_step_channel`` | ``cycle tv-channel`` | + +--------------------------------+----------------------------------------+ + | ``dvb_set_channel `` | ``set dvb-channel -`` | + +--------------------------------+----------------------------------------+ + | ``dvb_step_channel`` | ``cycle dvb-channel`` | + +--------------------------------+----------------------------------------+ + | ``tv_set_freq `` | ``set tv-freq `` | + +--------------------------------+----------------------------------------+ + | ``tv_step_freq`` | ``cycle tv-freq`` | + +--------------------------------+----------------------------------------+ + | ``tv_set_norm `` | ``set tv-norm `` | + +--------------------------------+----------------------------------------+ + | ``tv_step_norm`` | ``cycle tv-norm`` | + +--------------------------------+----------------------------------------+ + + .. note:: + + Due to lack of hardware and users using the TV/DVB/PVR features, and + due to the need to cleanup the related command code, it's possible + that the new commands are buggy or behave worse. This can be improved + if testers are available. Otherwise, some of the TV code will be + removed at some point. Slave mode ~~~~~~~~~~ diff --git a/DOCS/man/en/input.rst b/DOCS/man/en/input.rst index a482437818..d2ad209701 100644 --- a/DOCS/man/en/input.rst +++ b/DOCS/man/en/input.rst @@ -493,11 +493,8 @@ Input Commands that are Possibly Subject to Change be used in input.conf to reassign such bindings.) -Undocumented commands: ``tv_start_scan``, ``tv_step_channel``, ``tv_step_norm``, -``tv_step_chanlist``, ``tv_set_channel``, ``tv_last_channel``, ``tv_set_freq``, -``tv_step_freq``, ``tv_set_norm``, ``dvb_set_channel`` (all of these -should be replaced by properties), ``stop`` (questionable use), ``get_property`` -(?), ``vo_cmdline`` (experimental). +Undocumented commands: ``tv_last_channel`` (TV/DVB only), ``stop`` (questionable +use), ``get_property`` (?), ``vo_cmdline`` (experimental). Input Command Prefixes ---------------------- -- cgit v1.2.3