summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorOliver Freyermuth <o.freyermuth@googlemail.com>2016-01-08 20:32:08 +0100
committerwm4 <wm4@nowhere>2016-01-14 00:36:53 +0100
commit64067a9b7c639fc76baf2301f17443e07e61e70e (patch)
tree08d39181b0e1e4aa8dc1143679cdee4bd2566255 /player
parent62acd315ade4c95db5f88c9bda668677e9c6f438 (diff)
downloadmpv-64067a9b7c639fc76baf2301f17443e07e61e70e.tar.bz2
mpv-64067a9b7c639fc76baf2301f17443e07e61e70e.tar.xz
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.
Diffstat (limited to 'player')
-rw-r--r--player/command.c2
-rw-r--r--player/core.h2
2 files changed, 0 insertions, 4 deletions
diff --git a/player/command.c b/player/command.c
index 470fcc7b0f..a76ae6cf3c 100644
--- a/player/command.c
+++ b/player/command.c
@@ -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;
diff --git a/player/core.h b/player/core.h
index 6057725983..f3ce5b4178 100644
--- a/player/core.h
+++ b/player/core.h
@@ -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;