Add field "playlist_entry_id" to MpvEventEndFile

This commit is contained in:
Carsen Yates 2023-07-03 08:58:19 -07:00 committed by jaseg
parent f6d1269531
commit 2d787a977d

9
mpv.py
View file

@ -443,9 +443,12 @@ class MpvEventLogMessage(Structure):
return lazy_decoder(self._text) return lazy_decoder(self._text)
class MpvEventEndFile(Structure): class MpvEventEndFile(Structure):
_fields_ = [('reason', c_int), _fields_ = [
('error', c_int)] ('reason', c_int),
('error', c_int),
('playlist_entry_id', c_ulonglong),
]
EOF = 0 EOF = 0
RESTARTED = 1 RESTARTED = 1
ABORTED = 2 ABORTED = 2