summaryrefslogtreecommitdiffstats
path: root/core/mp_core.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-02-03 14:54:28 +0100
committerwm4 <wm4@nowhere>2013-02-03 16:52:48 +0100
commit5f28c34962fbbfa7e299c12565b4e5fba9bb21e4 (patch)
tree0072ac6529bc26687746279a809461cda6f538c2 /core/mp_core.h
parent3b37fadc5dedae742cf7d9db69c9656b596d8a7c (diff)
downloadmpv-5f28c34962fbbfa7e299c12565b4e5fba9bb21e4.tar.bz2
mpv-5f28c34962fbbfa7e299c12565b4e5fba9bb21e4.tar.xz
mplayer: make advancing the playlist respect looping
Explicitly advancing the playlist with input commands ("playlist_next") didn't jump back to the first file, if the current file was the last on the playlist and looping was enabled. Fix this and make the behavior with explicit input and playback EOF the same. Also add a minor feature: if looping is enabled, and the current file is the first on the playlist, going back one entry jumps to the last playlist entry (without changing loop count). Fixes #22.
Diffstat (limited to 'core/mp_core.h')
-rw-r--r--core/mp_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/mp_core.h b/core/mp_core.h
index 5a7926dee9..dc541ae55d 100644
--- a/core/mp_core.h
+++ b/core/mp_core.h
@@ -293,6 +293,7 @@ void mp_switch_track(struct MPContext *mpctx, enum stream_type type,
struct track *mp_track_by_tid(struct MPContext *mpctx, enum stream_type type,
int tid);
bool mp_remove_track(struct MPContext *mpctx, struct track *track);
+struct playlist_entry *mp_next_file(struct MPContext *mpctx, int direction);
// timeline/tl_matroska.c
void build_ordered_chapter_timeline(struct MPContext *mpctx);