summaryrefslogtreecommitdiffstats
path: root/libmpv
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-06-11 21:39:48 +0200
committerwm4 <wm4@nowhere>2015-06-11 21:42:09 +0200
commite53cb0890e8071ca86271c8b100343944dbbefe7 (patch)
tree155073a38d2f073f412baf1c6fd7da2eea9b803d /libmpv
parent87b60ded88f2cfb54636f88324a715a943f14fb9 (diff)
downloadmpv-e53cb0890e8071ca86271c8b100343944dbbefe7.tar.bz2
mpv-e53cb0890e8071ca86271c8b100343944dbbefe7.tar.xz
client API: add MPV_END_FILE_REASON_REDIRECT
Requested. Minor incompatible behavior change, as it was signalling MPV_END_FILE_REASON_EOF previously.
Diffstat (limited to 'libmpv')
-rw-r--r--libmpv/client.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/libmpv/client.h b/libmpv/client.h
index 8958865c79..3bfced25ca 100644
--- a/libmpv/client.h
+++ b/libmpv/client.h
@@ -198,7 +198,7 @@ extern "C" {
* relational operators (<, >, <=, >=).
*/
#define MPV_MAKE_VERSION(major, minor) (((major) << 16) | (minor) | 0UL)
-#define MPV_CLIENT_API_VERSION MPV_MAKE_VERSION(1, 17)
+#define MPV_CLIENT_API_VERSION MPV_MAKE_VERSION(1, 18)
/**
* Return the MPV_CLIENT_API_VERSION the mpv source has been compiled with.
@@ -1307,6 +1307,15 @@ typedef enum mpv_end_file_reason {
* mpv_event_end_file.error will be set.
*/
MPV_END_FILE_REASON_ERROR = 4,
+ /**
+ * The file was a playlist or similar. When the playlist is read, its
+ * entries will be appended to the playlist after the entry of the current
+ * file, the entry of the current file is removed, and a MPV_EVENT_END_FILE
+ * event is sent with reason set to MPV_END_FILE_REASON_REDIRECT. Then
+ * playback continues with the playlist contents.
+ * Since API version 1.18.
+ */
+ MPV_END_FILE_REASON_REDIRECT = 5,
} mpv_end_file_reason;
typedef struct mpv_event_end_file {