pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/multimedia/mpv mpv: Clean up some cruft in ao_netbsd.
details: https://anonhg.NetBSD.org/pkgsrc/rev/51e1c3d9294b
branches: trunk
changeset: 426993:51e1c3d9294b
user: nia <nia%pkgsrc.org@localhost>
date: Thu Apr 09 21:08:38 2020 +0000
description:
mpv: Clean up some cruft in ao_netbsd.
diffstat:
multimedia/mpv/Makefile | 4 ++--
multimedia/mpv/patches/patch-audio_out_ao__netbsd.c | 18 +++---------------
2 files changed, 5 insertions(+), 17 deletions(-)
diffs (56 lines):
diff -r b28f8a5541bf -r 51e1c3d9294b multimedia/mpv/Makefile
--- a/multimedia/mpv/Makefile Thu Apr 09 20:53:39 2020 +0000
+++ b/multimedia/mpv/Makefile Thu Apr 09 21:08:38 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.107 2020/04/09 20:53:39 nia Exp $
+# $NetBSD: Makefile,v 1.108 2020/04/09 21:08:38 nia Exp $
DISTNAME= mpv-0.32.0
-PKGREVISION= 9
+PKGREVISION= 10
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_GITHUB:=mpv-player/}
GITHUB_TAG= v${PKGVERSION_NOREV}
diff -r b28f8a5541bf -r 51e1c3d9294b multimedia/mpv/patches/patch-audio_out_ao__netbsd.c
--- a/multimedia/mpv/patches/patch-audio_out_ao__netbsd.c Thu Apr 09 20:53:39 2020 +0000
+++ b/multimedia/mpv/patches/patch-audio_out_ao__netbsd.c Thu Apr 09 21:08:38 2020 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-audio_out_ao__netbsd.c,v 1.5 2020/04/09 20:53:39 nia Exp $
+$NetBSD: patch-audio_out_ao__netbsd.c,v 1.6 2020/04/09 21:08:38 nia Exp $
NetBSD audio support.
---- audio/out/ao_netbsd.c.orig 2020-04-09 20:51:23.971921857 +0000
+--- audio/out/ao_netbsd.c.orig 2020-04-09 21:05:57.443146477 +0000
+++ audio/out/ao_netbsd.c
-@@ -0,0 +1,276 @@
+@@ -0,0 +1,264 @@
+/*
+ * Copyright (c) 2020 Nia Alarie <nia%NetBSD.org@localhost>
+ * All rights reserved.
@@ -155,12 +155,6 @@
+static void reset(struct ao *ao)
+{
+ struct priv *p = ao->priv;
-+ struct audio_info info;
-+
-+ if (ioctl(p->fd, AUDIO_GETBUFINFO, &info) == -1) {
-+ MP_ERR(ao, "AUDIO_GETBUFINFO failed: %s\n", mp_strerror(errno));
-+ return;
-+ }
+
+ (void)ioctl(p->fd, AUDIO_FLUSH, NULL);
+}
@@ -168,12 +162,6 @@
+static void drain(struct ao *ao)
+{
+ struct priv *p = ao->priv;
-+ struct audio_info info;
-+
-+ if (ioctl(p->fd, AUDIO_GETBUFINFO, &info) == -1) {
-+ MP_ERR(ao, "AUDIO_GETBUFINFO failed: %s\n", mp_strerror(errno));
-+ return;
-+ }
+
+ (void)ioctl(p->fd, AUDIO_DRAIN, NULL);
+}
Home |
Main Index |
Thread Index |
Old Index