diff options
author | rim <rozhuk.im@gmail.com> | 2017-12-15 15:40:08 +0300 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2017-12-16 23:24:55 -0800 |
commit | b0d0bc57008c88f1e840caa9e230f242cff29b64 (patch) | |
tree | 180446b105d8e4f0a9c1cfc16ebc984e73cae11d | |
parent | 04d04033e66934b9799d52c80515908e29daa2dc (diff) | |
download | mpv-b0d0bc57008c88f1e840caa9e230f242cff29b64.tar.bz2 mpv-b0d0bc57008c88f1e840caa9e230f242cff29b64.tar.xz |
dvb: Fix long channel switching: next/prev channel
-rw-r--r-- | player/command.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/player/command.c b/player/command.c index c6ad573ed0..61b8fb4595 100644 --- a/player/command.c +++ b/player/command.c @@ -3249,14 +3249,14 @@ static int mp_property_dvb_channel(void *ctx, struct m_property *prop, case M_PROPERTY_SET: r = prop_stream_ctrl(mpctx, STREAM_CTRL_DVB_SET_CHANNEL, arg); if (r == M_PROPERTY_OK && !mpctx->stop_play) - mpctx->stop_play = PT_RELOAD_FILE; + mpctx->stop_play = PT_CURRENT_ENTRY; return r; case M_PROPERTY_SWITCH: { struct m_property_switch_arg *sa = arg; int dir = sa->inc >= 0 ? 1 : -1; r = prop_stream_ctrl(mpctx, STREAM_CTRL_DVB_STEP_CHANNEL, &dir); if (r == M_PROPERTY_OK && !mpctx->stop_play) - mpctx->stop_play = PT_RELOAD_FILE; + mpctx->stop_play = PT_CURRENT_ENTRY; return r; } case M_PROPERTY_GET_TYPE: @@ -3275,14 +3275,14 @@ static int mp_property_dvb_channel_name(void *ctx, struct m_property *prop, case M_PROPERTY_SET: r = prop_stream_ctrl(mpctx, STREAM_CTRL_DVB_SET_CHANNEL_NAME, arg); if (r == M_PROPERTY_OK && !mpctx->stop_play) - mpctx->stop_play = PT_RELOAD_FILE; + mpctx->stop_play = PT_CURRENT_ENTRY; return r; case M_PROPERTY_SWITCH: { struct m_property_switch_arg *sa = arg; int dir = sa->inc >= 0 ? 1 : -1; r = prop_stream_ctrl(mpctx, STREAM_CTRL_DVB_STEP_CHANNEL, &dir); if (r == M_PROPERTY_OK && !mpctx->stop_play) - mpctx->stop_play = PT_RELOAD_FILE; + mpctx->stop_play = PT_CURRENT_ENTRY; return r; } case M_PROPERTY_GET: { |