summaryrefslogtreecommitdiffstats
path: root/stream/stream.h
diff options
context:
space:
mode:
authorOliver Freyermuth <o.freyermuth@googlemail.com>2016-01-08 20:19:57 +0100
committerwm4 <wm4@nowhere>2016-01-14 00:36:53 +0100
commit62acd315ade4c95db5f88c9bda668677e9c6f438 (patch)
tree79628972e6797155158bd004ca242f8c63a2f2a8 /stream/stream.h
parentc55b242b4ee89e91b4f9896e214c3bbe0ed46ea1 (diff)
downloadmpv-62acd315ade4c95db5f88c9bda668677e9c6f438.tar.bz2
mpv-62acd315ade4c95db5f88c9bda668677e9c6f438.tar.xz
player, stream_dvb: implement dvb-channel-name property.
On read, it returns the name of the current DVB program, on write, it triggers a channel-switch to the program if it is found in the channel list of the currently active card. Compared to the dvb-channel property which already exists and is a pair of integers (card + channel number) this has the limitation of not switching the card, but is probably of much more common use.
Diffstat (limited to 'stream/stream.h')
-rw-r--r--stream/stream.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/stream/stream.h b/stream/stream.h
index 28a6ba6bc9..11e70bcb7d 100644
--- a/stream/stream.h
+++ b/stream/stream.h
@@ -98,6 +98,8 @@ enum stream_ctrl {
STREAM_CTRL_TV_STEP_CHAN,
STREAM_CTRL_TV_LAST_CHAN,
STREAM_CTRL_DVB_SET_CHANNEL,
+ STREAM_CTRL_DVB_SET_CHANNEL_NAME,
+ STREAM_CTRL_DVB_GET_CHANNEL_NAME,
STREAM_CTRL_DVB_STEP_CHANNEL,
// Optical discs