From b0d0bc57008c88f1e840caa9e230f242cff29b64 Mon Sep 17 00:00:00 2001 From: rim Date: Fri, 15 Dec 2017 15:40:08 +0300 Subject: dvb: Fix long channel switching: next/prev channel --- player/command.c | 8 ++++---- 1 file 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: { -- cgit v1.2.3