Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:txutxifel
hypnotix
mpv.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mpv.patch of Package hypnotix
--- usr/lib/hypnotix/mpv.py 2024-01-04 17:38:39.000000000 +0100 +++ usr/lib/hypnotix/mpv.py 2024-04-22 14:58:51.000000000 +0200 @@ -526,6 +526,7 @@ _mpv_create = backend.mpv_create _API_VER = _mpv_client_api_version()[0] +_USE_LOADFILE_INDEX = _mpv_client_api_version() >= (2, 3) # libmpv 0.38.0 _handle_func('mpv_destroy' if _API_VER > 1 else 'mpv_detach_destroy', [], None, errcheck=None) _handle_func('mpv_create_client', [c_char_p], MpvHandle, notnull_errcheck) @@ -1148,7 +1149,10 @@ def loadfile(self, filename, mode='replace', **options): """Mapped mpv loadfile command, see man mpv(1).""" - self.command('loadfile', filename.encode(fs_enc), mode, MPV._encode_options(options)) + if _USE_LOADFILE_INDEX: + self.command('loadfile', filename.encode(fs_enc), mode, -1, MPV._encode_options(options)) + else: + self.command('loadfile', filename.encode(fs_enc), mode, MPV._encode_options(options)) def loadlist(self, playlist, mode='replace'): """Mapped mpv loadlist command, see man mpv(1).""" @@ -1865,4 +1869,3 @@ def report_swap(self): _mpv_render_context_report_swap(self._handle) -
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor