diff options
author | wm4 <wm4@nowhere> | 2015-02-02 16:47:32 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-02-02 18:07:37 +0100 |
commit | 9d8b00f1d6624779ab0db946018042135ef28017 (patch) | |
tree | e76468c1e49d52ff4cbfe58fad014803462c4a73 | |
parent | c45f2fe0ee147cadb85e8f166cca83012977c545 (diff) |
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).
-rw-r--r-- | player/command.c | 2 | ||||
-rw-r--r-- | stream/stream.h | 1 |
2 files changed, 3 insertions, 0 deletions
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; diff --git a/stream/stream.h b/stream/stream.h index 4c9805dab3..ef900bf16f 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -95,6 +95,7 @@ enum stream_ctrl { STREAM_CTRL_TV_SET_NORM, STREAM_CTRL_TV_STEP_NORM, STREAM_CTRL_TV_SET_CHAN, + STREAM_CTRL_TV_GET_CHAN, STREAM_CTRL_TV_STEP_CHAN, STREAM_CTRL_TV_LAST_CHAN, STREAM_CTRL_DVB_SET_CHANNEL, |