summaryrefslogtreecommitdiffstats
path: root/stream/cache.c
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/cache.c
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/cache.c')
-rw-r--r--stream/cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/cache.c b/stream/cache.c
index 1f00fd85c9..ff5dd9fca6 100644
--- a/stream/cache.c
+++ b/stream/cache.c
@@ -418,6 +418,7 @@ static bool control_needs_flush(int stream_ctrl)
case STREAM_CTRL_SET_CURRENT_TITLE:
case STREAM_CTRL_RECONNECT:
case STREAM_CTRL_DVB_SET_CHANNEL:
+ case STREAM_CTRL_DVB_SET_CHANNEL_NAME:
case STREAM_CTRL_DVB_STEP_CHANNEL:
return true;
}