Update to 0.34.1, from Brad

- player: fix autofit/geometry related segfault
- ao_oss: add missing PATH_DEV_MIXER define
- egl_helpers: fix context creation if GLES 3 is not available
- audio: stop corrupting audio on underreads
- wayland: fix a potential segfault on surface enter
- vo_gpu: opengl: fix wrong glMemoryBarrier call
- vo_gpu: opengl: create context at version 4.4 again
- af_lavcac3enc: fix memory leak on no-op
- subprocess: unblock/reset signals before running child process
- wayland: avoid doing unneccesary window resizes
This commit is contained in:
kn 2022-01-29 12:30:14 +00:00
parent 0aaed074cb
commit d7115f2cab
3 changed files with 9 additions and 13 deletions

View File

@ -1,11 +1,10 @@
# $OpenBSD: Makefile,v 1.78 2021/12/14 23:20:56 kn Exp $
# $OpenBSD: Makefile,v 1.79 2022/01/29 12:30:14 kn Exp $
COMMENT = movie player based on MPlayer/mplayer2
GH_ACCOUNT = mpv-player
GH_PROJECT = mpv
GH_TAGNAME = v0.34.0
REVISION = 1
GH_TAGNAME = v0.34.1
SHARED_LIBS += mpv 0.2 # 1.109
@ -27,7 +26,8 @@ WANTLIB += avfilter avformat avresample avutil bluray c cdio cdio_cdda
WANTLIB += cdio_paranoia drm dvdnav dvdread epoxy expat fontconfig
WANTLIB += freetype fribidi gbm glib-2.0 graphite2 harfbuzz iconv
WANTLIB += intl jpeg lcms2 ${MODLUA_WANTLIB} m pcre placebo postproc
WANTLIB += pthread sndio swresample swscale xcb xcb-dri2 xcb-glx xml2 z
WANTLIB += pthread sndio swresample swscale udfread xcb xcb-dri2
WANTLIB += xcb-glx xml2 z
MODULES = lang/lua \
lang/python

View File

@ -1,4 +1,4 @@
SHA256 (mpv-0.34.0.tar.gz) = 9lT7YnXlF49X4FXSCRjX004ZlJvJjrv0pzcZAuiM4wk=
SHA256 (mpv-0.34.1.tar.gz) = Mt7YwTtjmDEPondnN4GT3B2214sAa3Dby9MSOhRF50Y=
SHA256 (waf-2.0.20) = v5cemO3CQUloomLGqmuIVBomw80khonIn0xXNwlV7n8=
SIZE (mpv-0.34.0.tar.gz) = 3287976
SIZE (mpv-0.34.1.tar.gz) = 3288356
SIZE (waf-2.0.20) = 104725

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-audio_out_ao_sndio_c,v 1.4 2021/12/14 23:20:56 kn Exp $
$OpenBSD: patch-audio_out_ao_sndio_c,v 1.5 2022/01/29 12:30:14 kn Exp $
Another attempt to return ao_sndio to mpv
@ -7,11 +7,12 @@ https://github.com/mpv-player/mpv/pull/9298
Index: audio/out/ao_sndio.c
--- audio/out/ao_sndio.c.orig
+++ audio/out/ao_sndio.c
@@ -0,0 +1,322 @@
@@ -0,0 +1,318 @@
+/*
+ * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
+ * Copyright (c) 2013 Christian Neukirchen <chneukirchen@gmail.com>
+ * Copyright (c) 2020 Rozhuk Ivan <rozhuk.im@gmail.com>
+ * Copyright (c) 2021 Andrew Krasavin <noiseless-ak@yandex.ru>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
@ -150,12 +151,7 @@ Index: audio/out/ao_sndio.c
+ goto err_out;
+
+ p->par.pchan = ao->channels.num;
+#ifdef __FreeBSD__
+ /* OSS wrapper have bad defaults, overwrite it. */
+ p->par.appbufsz = ((p->par.rate * 25) / 1000); /* 25 ms. */
+#else
+ p->par.appbufsz = p->par.rate * 250 / 1000; /* 250ms buffer */
+#endif
+ p->par.round = p->par.rate * 10 / 1000; /* 10ms block size */
+
+ if (!sio_setpar(p->hdl, &p->par)) {