summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-21 18:06:52 +0200
committerwm4 <wm4@nowhere>2013-07-21 18:06:52 +0200
commit4fa6975a7687be9833606ed2d416daa9fd359db1 (patch)
treec793becf164e932d677b707417c55896cf6e5ed6
parentba1dc085bc35fd4b048dd5b4a7cbc47bf8c10217 (diff)
downloadmpv-4fa6975a7687be9833606ed2d416daa9fd359db1.tar.bz2
mpv-4fa6975a7687be9833606ed2d416daa9fd359db1.tar.xz
command: fix switching tracks backwards if there's only one track
This remained stuck at no selection.
-rw-r--r--core/command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/command.c b/core/command.c
index d57a0976e4..4cf508d5e7 100644
--- a/core/command.c
+++ b/core/command.c
@@ -854,7 +854,8 @@ static struct track* track_next(struct MPContext *mpctx, enum stream_type type,
} else {
if (seen && !next) {
next = cur;
- } else if (!seen || !track) {
+ }
+ if (!seen || !track) {
prev = cur;
}
}