summaryrefslogtreecommitdiffstats
path: root/libmpv
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-28 01:31:38 +0100
committerwm4 <wm4@nowhere>2014-02-28 01:31:38 +0100
commitc30bf22d8d31336696430406b0483bfc9821c8bb (patch)
tree20686c0dee0993bc01199f8e87150c6622319a9a /libmpv
parent1852555ca1100e06e970a9c9703ebcb045ff6006 (diff)
downloadmpv-c30bf22d8d31336696430406b0483bfc9821c8bb.tar.bz2
mpv-c30bf22d8d31336696430406b0483bfc9821c8bb.tar.xz
client API: rename MPV_EVENT_PLAYBACK_START, add MPV_EVENT_SEEK
Rename MPV_EVENT_PLAYBACK_START to MPV_EVENT_FILE_LOADED. Add MPV_EVENT_SEEK and MPV_EVENT_PLAYBACK_RESTART.
Diffstat (limited to 'libmpv')
-rw-r--r--libmpv/client.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/libmpv/client.h b/libmpv/client.h
index 0c0cde7b0f..b211eea69d 100644
--- a/libmpv/client.h
+++ b/libmpv/client.h
@@ -768,7 +768,7 @@ typedef enum mpv_event_id {
* Notification when the file has been loaded (headers were read etc.), and
* decoding starts.
*/
- MPV_EVENT_PLAYBACK_START = 8,
+ MPV_EVENT_FILE_LOADED = 8,
/**
* The list of video/audio/subtitle tracks was changed.
*/
@@ -831,7 +831,19 @@ typedef enum mpv_event_id {
* unspecified whether this happens on file start or only when it changes
* within a file.)
*/
- MPV_EVENT_METADATA_UPDATE = 19
+ MPV_EVENT_METADATA_UPDATE = 19,
+ /**
+ * Happens when a seek was initiated. Playback stops. Usually it will
+ * resume with MPV_EVENT_PLAYBACK_START as soon as the seek is finished.
+ */
+ MPV_EVENT_SEEK = 20,
+ /**
+ * There was a discontinuity of some sort (like a seek), and playback
+ * was reinitialized. Usually happens after seeking, or ordered chapter
+ * segment switches. The main purpose is allowing the client to detect
+ * when a seek request is finished.
+ */
+ MPV_EVENT_PLAYBACK_RESTART = 21
} mpv_event_id;
/**