diff options
author | wm4 <wm4@nowhere> | 2014-06-25 17:41:16 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-06-25 17:41:16 +0200 |
commit | 1dc760f9113169f4345c452526a0f4a7909166ec (patch) | |
tree | 6252175175c817ed1ac7e2406cb7d92667904d4a /player | |
parent | 5dd0193d1f228c4144369a41e80426eb7d096ddf (diff) | |
download | mpv-1dc760f9113169f4345c452526a0f4a7909166ec.tar.bz2 mpv-1dc760f9113169f4345c452526a0f4a7909166ec.tar.xz |
command: fix tv-channel property
Now it's at least actually relayed to the TV code. I didn't/couldn't
test whether it actually works, though.
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c index af82a775da..6538d5e2bb 100644 --- a/player/command.c +++ b/player/command.c @@ -2349,6 +2349,9 @@ static int mp_property_tv_channel(void *ctx, struct m_property *prop, int action, void *arg) { switch (action) { + case M_PROPERTY_GET_TYPE: + *(struct m_option *)arg = (struct m_option){.type = CONF_TYPE_STRING}; + return M_PROPERTY_OK; case M_PROPERTY_SET: return prop_stream_ctrl(ctx, STREAM_CTRL_TV_SET_CHAN, *(char **)arg); case M_PROPERTY_SWITCH: { |