mirror of
https://github.com/mpv-player/mpv
synced 2025-02-21 15:27:00 +00:00
player: remove unused last_dvb_step member.
Channel switching is treated inside the global DVB state by now. Anyways the last switching direction is not really useful and of no interest inside the player.
This commit is contained in:
parent
62acd315ad
commit
64067a9b7c
@ -2978,7 +2978,6 @@ static int mp_property_dvb_channel(void *ctx, struct m_property *prop,
|
||||
int r;
|
||||
switch (action) {
|
||||
case M_PROPERTY_SET:
|
||||
mpctx->last_dvb_step = 1;
|
||||
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;
|
||||
@ -2986,7 +2985,6 @@ static int mp_property_dvb_channel(void *ctx, struct m_property *prop,
|
||||
case M_PROPERTY_SWITCH: {
|
||||
struct m_property_switch_arg *sa = arg;
|
||||
int dir = sa->inc >= 0 ? 1 : -1;
|
||||
mpctx->last_dvb_step = dir;
|
||||
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;
|
||||
|
@ -370,8 +370,6 @@ typedef struct MPContext {
|
||||
int last_chapter_seek;
|
||||
double last_chapter_pts;
|
||||
|
||||
int last_dvb_step;
|
||||
|
||||
bool paused;
|
||||
// step this many frames, then pause
|
||||
int step_frames;
|
||||
|
Loading…
Reference in New Issue
Block a user