pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/mpv mpv: Set autosync=30 by default on NetBSD.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5d475b049f23
branches:  trunk
changeset: 334744:5d475b049f23
user:      nia <nia%pkgsrc.org@localhost>
date:      Tue Jun 04 13:55:43 2019 +0000

description:
mpv: Set autosync=30 by default on NetBSD.

PR kern/54230

diffstat:

 multimedia/mpv/Makefile                        |   4 ++--
 multimedia/mpv/distinfo                        |   3 ++-
 multimedia/mpv/patches/patch-options_options.c |  21 +++++++++++++++++++++
 3 files changed, 25 insertions(+), 3 deletions(-)

diffs (55 lines):

diff -r 00e34047a673 -r 5d475b049f23 multimedia/mpv/Makefile
--- a/multimedia/mpv/Makefile   Tue Jun 04 13:39:56 2019 +0000
+++ b/multimedia/mpv/Makefile   Tue Jun 04 13:55:43 2019 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.82 2019/05/31 15:55:11 nia Exp $
+# $NetBSD: Makefile,v 1.83 2019/06/04 13:55:43 nia Exp $
 
 DISTNAME=      mpv-0.29.1
-PKGREVISION=   7
+PKGREVISION=   8
 CATEGORIES=    multimedia
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=mpv-player/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}
diff -r 00e34047a673 -r 5d475b049f23 multimedia/mpv/distinfo
--- a/multimedia/mpv/distinfo   Tue Jun 04 13:39:56 2019 +0000
+++ b/multimedia/mpv/distinfo   Tue Jun 04 13:55:43 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.52 2019/06/01 01:15:53 tsutsui Exp $
+$NetBSD: distinfo,v 1.53 2019/06/04 13:55:43 nia Exp $
 
 SHA1 (mpv-0.29.1.tar.gz) = 83f2bc0eb5a8bec9a9d5efc7de0e19a442238ac5
 RMD160 (mpv-0.29.1.tar.gz) = 72a4fda3a72ac4fd37ed04435833fa2cf378a012
@@ -6,6 +6,7 @@
 Size (mpv-0.29.1.tar.gz) = 3059503 bytes
 SHA1 (patch-audio_out_ao__alsa.c) = c4661d0d22550d6e4eb2b7a42dd04dbcc58123b0
 SHA1 (patch-audio_out_ao__oss.c) = 824c214d0d4464b94e46a922ede4045ae537a534
+SHA1 (patch-options_options.c) = 125282ede99098224fc9c16952b44c12b8b3e06b
 SHA1 (patch-player_main.c) = e794199990059cc95050032194bca70557c381d7
 SHA1 (patch-video_out_drm__common.c) = facb8d99fe31119618866c9af512a60e54b4ea6c
 SHA1 (patch-wscript) = a908365c0c63745e1d22010c26804789997d4377
diff -r 00e34047a673 -r 5d475b049f23 multimedia/mpv/patches/patch-options_options.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/mpv/patches/patch-options_options.c    Tue Jun 04 13:55:43 2019 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-options_options.c,v 1.1 2019/06/04 13:55:43 nia Exp $
+
+autosync=0 requires "a perfect audio delay measurement".
+
+NetBSD does not provide this. Setting it to 30 (as recommended in
+mpv's man page) fixes frame drops in NetBSD.
+
+PR kern/54230
+--- options/options.c.orig     2018-10-02 19:03:41.000000000 +0000
++++ options/options.c
+@@ -972,6 +972,10 @@ const struct MPOpts mp_default_opts = {
+     },
+ 
+     .cuda_device = -1,
++
++#ifdef __NetBSD__
++    .autosync = 30,
++#endif
+ };
+ 
+ #endif /* MPLAYER_CFG_MPLAYER_H */



Home | Main Index | Thread Index | Old Index