Commit graph

306 commits

Author SHA1 Message Date
Kira
2b3249a73d mpv.py: change mpv_detach_destroy to mpv_destroy 2022-04-17 22:42:40 +02:00
jaseg
c12e1ed8a1 porcelain: Add fancy wait_for_event/property future handling 2022-04-17 22:37:10 +02:00
jaseg
3d956b91f8 Bump minimum python version to 3.7 2022-04-17 22:36:52 +02:00
jaseg
b0d34af527 README: Add skip silence example 2022-04-17 22:36:13 +02:00
jaseg
850bfcbd2f tests: Fix flaky sub_add test 2022-04-17 22:35:47 +02:00
jaseg
b8cac81b36 tests: Add wait_for_shutdown unit test 2022-04-17 22:35:33 +02:00
jaseg
7459d3df04 tests: Switch to pytest, remove devnull hack 2022-04-17 22:35:13 +02:00
jaseg
0cda09c628 Add timeouts and error forwarding to wait_for_{property,event} conditions 2022-03-26 14:23:04 +01:00
jaseg
a7e61c9362 Fix segmentation fault in unit tests on wayland 2022-03-26 14:23:04 +01:00
jaseg
518421a127 use daemon = True instead of setDaemon 2022-03-26 14:23:04 +01:00
Paride Legovini
1f59cfa072 test_property_observer_decorator: bump sleep to 0.1s
Fixes flaky test with mpv 0.33.1 on ppc64el.
Closes #178.
2021-10-14 23:23:35 +02:00
Marcel Moreaux
b5f03dd2b7 Fix handling of c_void_p args in MpvRenderParam.__init__()
Handling of c_void_p args (x11_display, wl_display) was broken.
Added a case to correctly handle the c_void_p constructor case.
See https://github.com/jaseg/python-mpv/issues/169
2021-07-28 12:37:55 +02:00
jaseg
03e847d8a1
Update PyGObject example with locale fixup workaround
Closes #150
2021-03-19 10:47:25 +01:00
hixz00
3105db35a4 mpv.py: update: Use ctypes.memmove to speed up 2021-01-19 18:59:59 +01:00
jaseg
5e581e817b
Add dfaker's imgui/OpenGL demo 2021-01-19 18:55:45 +01:00
Robozman
fa1d9da6ab README: Add Robozman's PyQt5/QML/OpenGL render context example 2020-10-02 16:21:47 +02:00
Dziqs
035e1db1db Fixing typo in keep_playlist causing NameError 2020-07-25 23:42:26 +02:00
jaseg
d1f304ab92 tests: Make test srt path relative to test script 2020-07-21 08:41:06 +02:00
jaseg
170f15d390 Make tests run when called through setup.py from root dir 2020-07-21 08:37:00 +02:00
Louis-Philippe Véronneau
2b66d0d97b Move test files into a 'tests' dir 2020-07-21 08:32:47 +02:00
jaseg
e29e042998 Version 0.5.1 2020-07-20 14:20:10 +02:00
jaseg
1f2b0058b3 mpv.py: terminate: Raise warning when called from event thread. 2020-07-19 22:34:24 +02:00
jaseg
e85342a147 mpv.py: add wait_for_shutdown 2020-07-19 22:33:56 +02:00
jaseg
d6840f800e mpv.py: add check_core_alive, check core in __getattr__, __setattr__ 2020-07-19 22:33:42 +02:00
jaseg
e98a91ed2b Bump version to v0.5.0
This release introduces a new ShutdownError thrown in a few places in
case the underlying libmpv handle gets closed. Previously, such
situations would lead to hangs (wait_for_* methods) or segfaults (e.g.
__getattr__). Some of this carnage is still possible, but these
remaining issues will be closed over the next releases by throwing
ShutdownErrors in more places.
2020-07-19 21:56:39 +02:00
jaseg
dae47345f7 tests: add tests for new wait_* API 2020-07-19 21:54:49 +02:00
jaseg
583f12ed63 mpv.py: add prepare_and_wait_for_property 2020-07-19 21:54:40 +02:00
jaseg
632a87af49 mpv.py: Update copyright date 2020-07-19 21:13:36 +02:00
jaseg
0ea4622fb7 mpv.py: Add docstrings to new additions to API 2020-07-18 14:28:46 +02:00
jaseg
846f2a65ae Sprinkle some thread safety over event loop, add *wait_for_event 2020-07-18 14:21:31 +02:00
jaseg
ad68ec5927 mpv.py: improve shutdown handling, replace wait_for_playback 2020-07-18 00:06:04 +02:00
jaseg
cc368710bd Bump version to v0.4.8 2020-07-16 21:06:06 +02:00
jaseg
47b5a27d2c README: add video overlay example 2020-07-16 19:28:53 +02:00
jaseg
759b9701c3 mpv.py: add wait_until_paused, wait_until_playing 2020-07-16 19:28:33 +02:00
jaseg
7362f663c1 mpv.py: Add overlay support 2020-07-16 15:01:35 +02:00
jaseg
44ca94749a tests: rename test.srt to sub_test.srt to prevent auto-load 2020-07-16 15:01:23 +02:00
jaseg
b68a03c9d0 mpv.py: add some missing commands 2020-07-16 13:02:14 +02:00
jaseg
d177064d12 tests: improve key binding tests with loopback test 2020-07-16 13:01:52 +02:00
jaseg
9c33d0117e tests: Fix test_log_handler for current master
The current mpv master changes default log output, breaking this test.
To be future-proof, it now emits its own message through the print-text
command.
2020-07-15 22:04:37 +02:00
jaseg
400053e8d3 tests: Fix TestLifecycle.test_options for current mpv master 2020-07-15 22:04:03 +02:00
jaseg
3fe42bfd9d tests: Fix test_instance_method_property_observer (#108)
The loop property was a poor choice here since setting it messes with
libmpv's event loop, leading to property change observer events being
dropped.
2020-07-15 22:04:03 +02:00
jaseg
f5a9690739 tests: Fix test_property_observer_decorator (#108) 2020-07-15 22:03:37 +02:00
jaseg
b54d5f5521 tests: Fix test_write for segaults in libmpv (#108) 2020-07-15 22:03:37 +02:00
YoSTEALTH
e6abadec7e added "python_requires"
people are installing this package in python2 and running into issues of syntax error which is only used in pyhon3.5, thus the need of `python_requires`
2020-07-15 22:03:37 +02:00
Louis-Philippe Véronneau
b4f5b10699 remove superfluous whitespaces 2020-07-15 22:03:37 +02:00
jaseg
db644cd74e Bump version to v0.4.7 2020-07-12 13:30:39 +02:00
jaseg
50294b7f2f README: Add detail on subtitle handling 2020-07-12 13:28:38 +02:00
jaseg
c3eef35f59 Fix handling of dashed options in loadfile.
Add tests based on --sub-file. Also add a test for sub_add here.
2020-07-12 13:27:53 +02:00
Peter Kuchar
3ef4ecf765 update README with inserting subtitles 2020-07-11 22:56:57 +02:00
jaseg
0013328ff2 Add release script 2020-04-05 13:27:37 +02:00