diff options
author | wm4 <wm4@mplayer2.org> | 2011-11-30 08:28:18 +0100 |
---|---|---|
committer | wm4 <wm4@mplayer2.org> | 2012-01-18 02:53:30 +0100 |
commit | 34b22ec6ea4a31eb40bb29b6da21cf2f406ea1a4 (patch) | |
tree | bf2cb1b5ec3e73b6ff3be5c3b9fbf0b20241d6b3 /pnm_loader.c | |
parent | 3b03f4995d96689e679c3cc9bc0515d937cb879c (diff) | |
download | mpv-34b22ec6ea4a31eb40bb29b6da21cf2f406ea1a4.tar.bz2 mpv-34b22ec6ea4a31eb40bb29b6da21cf2f406ea1a4.tar.xz |
playtree: --shuffle shouldn't make playlist navigation useless
When --shuffle was used, the pt_step -1 jumped to the next file, instead
of the previously played file. This was because the playtree entries were
never actually shuffled, but instead a random unplayed file was picked.
Fix this by actually shuffling the playtree in advance. I couldn't see any
clear location where exactly this should happen, so it's done when a
playtree iterator is created.
Not removing the old code, since new playtree entries could be added while
an iterator is active.
Diffstat (limited to 'pnm_loader.c')
0 files changed, 0 insertions, 0 deletions