Commit graph

298 commits

Author SHA1 Message Date
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
jaseg
2c75f23623 Version v0.4.6 2020-04-05 12:49:21 +02:00
jaseg
068d034cc0 Make tests run headless using xvfbwrapper 2020-04-05 12:47:34 +02:00
jaseg
4eb105a751
Add some high-level API information to README 2020-04-01 14:27:27 +02:00
jaseg
c1df201b26 README: Add info on GUI modes
Closes #102
2020-01-24 12:23:04 +01:00
jaseg
fc775920de README: add render context gtk example 2020-01-03 01:11:23 +01:00
jaseg
3c21d679da Initial libmpv/render.h mapping
For an example using this with GTK see:
https://gist.github.com/jaseg/657e8ecca3267c0d82ec85d40f423caa
2020-01-03 01:08:16 +01:00
Elias
3205f1b6f8 Add GTK/OpenGL example (#100)
* Add GTK/OpenGL example
2020-01-03 01:06:36 +01:00
jaseg
dde7da1aec Version 0.4.5 2019-12-04 09:49:05 +01:00