diff options
author | wm4 <wm4@nowhere> | 2013-07-21 18:06:52 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-21 18:06:52 +0200 |
commit | 4fa6975a7687be9833606ed2d416daa9fd359db1 (patch) | |
tree | c793becf164e932d677b707417c55896cf6e5ed6 /core/command.c | |
parent | ba1dc085bc35fd4b048dd5b4a7cbc47bf8c10217 (diff) | |
download | mpv-4fa6975a7687be9833606ed2d416daa9fd359db1.tar.bz2 mpv-4fa6975a7687be9833606ed2d416daa9fd359db1.tar.xz |
command: fix switching tracks backwards if there's only one track
This remained stuck at no selection.
Diffstat (limited to 'core/command.c')
-rw-r--r-- | core/command.c | 3 |
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; } } |