From 9d8b00f1d6624779ab0db946018042135ef28017 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 2 Feb 2015 16:47:32 +0100 Subject: command: add dummy get implementation for tv-channel property A small cosmetic change with the effect that pressing 'k' shows "unavailable" instead of "error" (even if no TV code is active). --- player/command.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player') diff --git a/player/command.c b/player/command.c index 09bd118f7f..3cfdbe337d 100644 --- a/player/command.c +++ b/player/command.c @@ -2855,6 +2855,8 @@ static int mp_property_tv_channel(void *ctx, struct m_property *prop, return M_PROPERTY_OK; case M_PROPERTY_SET: return prop_stream_ctrl(ctx, STREAM_CTRL_TV_SET_CHAN, *(char **)arg); + case M_PROPERTY_GET: + return prop_stream_ctrl(ctx, STREAM_CTRL_TV_GET_CHAN, arg); case M_PROPERTY_SWITCH: { struct m_property_switch_arg *sa = arg; int dir = sa->inc >= 0 ? 1 : -1; -- cgit v1.2.3