pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/multimedia/mpv mpv: Fix build on NetBSD 8.
details: https://anonhg.NetBSD.org/pkgsrc/rev/2bdcc32232f9
branches: trunk
changeset: 427385:2bdcc32232f9
user: nia <nia%pkgsrc.org@localhost>
date: Thu Apr 16 04:17:54 2020 +0000
description:
mpv: Fix build on NetBSD 8.
diffstat:
multimedia/mpv/distinfo | 4 ++--
multimedia/mpv/patches/patch-audio_out_ao__netbsd.c | 10 +++++++---
2 files changed, 9 insertions(+), 5 deletions(-)
diffs (50 lines):
diff -r 3931c77cdaaa -r 2bdcc32232f9 multimedia/mpv/distinfo
--- a/multimedia/mpv/distinfo Thu Apr 16 04:16:13 2020 +0000
+++ b/multimedia/mpv/distinfo Thu Apr 16 04:17:54 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.66 2020/04/10 04:00:02 nia Exp $
+$NetBSD: distinfo,v 1.67 2020/04/16 04:17:54 nia Exp $
SHA1 (mpv-0.32.0.tar.gz) = 5b69ea34dd5f8d209acd5266415c7bc00ab83341
RMD160 (mpv-0.32.0.tar.gz) = d1e399fce8985a0399fe627248b87d8537cfefd7
@@ -7,7 +7,7 @@
SHA1 (patch-DOCS_man_ao.rst) = 5940fe1ad4d4328c03b9e6e5265c517762cfe2d0
SHA1 (patch-audio_out_ao.c) = 1527c818d0f50801485ad3b90c5d86b30b2ca6f1
SHA1 (patch-audio_out_ao__alsa.c) = c4661d0d22550d6e4eb2b7a42dd04dbcc58123b0
-SHA1 (patch-audio_out_ao__netbsd.c) = 2d0c72372fb71ab78c56fe59aa0a65c86e6e86cc
+SHA1 (patch-audio_out_ao__netbsd.c) = 94549be09bec15afc08dbe132880334b3140d4a1
SHA1 (patch-options_options.c) = c75fb27140ad21e0a11c6ded976116c544661f56
SHA1 (patch-player_main.c) = 7d1d62091c327fca698844004ddb9a7871e15fce
SHA1 (patch-video_out_drm__common.c) = a545a8aec29f1b3c44d26aacbc59b86d3333a0b9
diff -r 3931c77cdaaa -r 2bdcc32232f9 multimedia/mpv/patches/patch-audio_out_ao__netbsd.c
--- a/multimedia/mpv/patches/patch-audio_out_ao__netbsd.c Thu Apr 16 04:16:13 2020 +0000
+++ b/multimedia/mpv/patches/patch-audio_out_ao__netbsd.c Thu Apr 16 04:17:54 2020 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-audio_out_ao__netbsd.c,v 1.6 2020/04/09 21:08:38 nia Exp $
+$NetBSD: patch-audio_out_ao__netbsd.c,v 1.7 2020/04/16 04:17:55 nia Exp $
NetBSD audio support.
---- audio/out/ao_netbsd.c.orig 2020-04-09 21:05:57.443146477 +0000
+--- audio/out/ao_netbsd.c.orig 2020-04-16 04:14:21.934246800 +0000
+++ audio/out/ao_netbsd.c
-@@ -0,0 +1,264 @@
+@@ -0,0 +1,268 @@
+/*
+ * Copyright (c) 2020 Nia Alarie <nia%NetBSD.org@localhost>
+ * All rights reserved.
@@ -83,10 +83,14 @@
+ goto fail;
+ }
+
++#ifdef AUDIO_GETFORMAT
+ if (ioctl(p->fd, AUDIO_GETFORMAT, &hw_info) == -1) {
+ MP_ERR(ao, "AUDIO_GETFORMAT failed: %s\n", mp_strerror(errno));
+ goto fail;
+ }
++#else
++ hw_info.play.sample_rate = 48000;
++#endif
+
+ info.mode = AUMODE_PLAY;
+
Home |
Main Index |
Thread Index |
Old Index