diff options
author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2021-12-16 15:31:57 +0100 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2021-12-16 15:32:41 +0100 |
commit | 922fd42281d7a4bdab53199baa7e96e93c1bff5a (patch) | |
tree | d219d35f46803d74ea857808dfb234bad273e13a /media-video/vidify | |
parent | www-client/chromium: beta channel bump to 97.0.4692.56 (diff) | |
download | gentoo-922fd42281d7a4bdab53199baa7e96e93c1bff5a.tar.gz gentoo-922fd42281d7a4bdab53199baa7e96e93c1bff5a.tar.bz2 gentoo-922fd42281d7a4bdab53199baa7e96e93c1bff5a.zip |
media-video/vidify: patch for python 3.10 and vlc
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'media-video/vidify')
-rw-r--r-- | media-video/vidify/files/vidify-2.2.6-python310.patch | 16 | ||||
-rw-r--r-- | media-video/vidify/vidify-2.2.6-r2.ebuild (renamed from media-video/vidify/vidify-2.2.6-r1.ebuild) | 5 |
2 files changed, 20 insertions, 1 deletions
diff --git a/media-video/vidify/files/vidify-2.2.6-python310.patch b/media-video/vidify/files/vidify-2.2.6-python310.patch new file mode 100644 index 000000000000..4b78ea559333 --- /dev/null +++ b/media-video/vidify/files/vidify-2.2.6-python310.patch @@ -0,0 +1,16 @@ +diff --git a/vidify/player/vlc.py b/vidify/player/vlc.py +index a7c9ec0..cb50f89 100644 +--- a/vidify/player/vlc.py ++++ b/vidify/player/vlc.py +@@ -75,9 +75,9 @@ class VLCPlayer(PlayerBase): + def start_video(self, media: str, is_playing: bool = True) -> None: + logging.info("Starting new video") + if CURRENT_PLATFORM in (Platform.LINUX, Platform.BSD): +- self._player.set_xwindow(self.winId()) ++ self._player.set_xwindow(int(self.winId())) + elif CURRENT_PLATFORM == Platform.WINDOWS: +- self._player.set_hwnd(self.winId()) ++ self._player.set_hwnd(int(self.winId())) + elif CURRENT_PLATFORM == Platform.MACOS: + self._player.set_nsobject(int(self.winId())) + diff --git a/media-video/vidify/vidify-2.2.6-r1.ebuild b/media-video/vidify/vidify-2.2.6-r2.ebuild index ae5d74063584..fe640744473d 100644 --- a/media-video/vidify/vidify-2.2.6-r1.ebuild +++ b/media-video/vidify/vidify-2.2.6-r2.ebuild @@ -32,7 +32,10 @@ RDEPEND=" " # use yt-dlp instead of youtube-dl, otherwise download is too slow for playback -PATCHES=( "${FILESDIR}/${P}-yt-dlp.patch" ) +PATCHES=( + "${FILESDIR}/${P}-yt-dlp.patch" + "${FILESDIR}/${P}-python310.patch" +) distutils_enable_tests unittest |