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 patch-audio_out_ao_oss.c `reqc...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ac1a99123535
branches: trunk
changeset: 386578:ac1a99123535
user: leot <leot%pkgsrc.org@localhost>
date: Tue Oct 23 12:39:35 2018 +0000
description:
mpv: Fix patch-audio_out_ao_oss.c `reqchannels > 2' case
(The previous version actually introduced a regression in `reqchannels
> 2' code path, sorry!)
diffstat:
multimedia/mpv/distinfo | 4 ++--
multimedia/mpv/patches/patch-audio_out_ao__oss.c | 9 +++++----
2 files changed, 7 insertions(+), 6 deletions(-)
diffs (50 lines):
diff -r 0b267eedc8ac -r ac1a99123535 multimedia/mpv/distinfo
--- a/multimedia/mpv/distinfo Tue Oct 23 12:39:25 2018 +0000
+++ b/multimedia/mpv/distinfo Tue Oct 23 12:39:35 2018 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.44 2018/10/23 12:14:54 leot Exp $
+$NetBSD: distinfo,v 1.45 2018/10/23 12:39:35 leot Exp $
SHA1 (mpv-0.29.1.tar.gz) = 83f2bc0eb5a8bec9a9d5efc7de0e19a442238ac5
RMD160 (mpv-0.29.1.tar.gz) = 72a4fda3a72ac4fd37ed04435833fa2cf378a012
SHA512 (mpv-0.29.1.tar.gz) = ec57c9ceaaf2915ee237dd5a1c5ea5d22725d8611e28a9b998e5bb0d8ab5bdf3631d0267fc7b54da31cb1eaa145ef35841e68846bd41c3b9e1024902e92fd086
Size (mpv-0.29.1.tar.gz) = 3059503 bytes
-SHA1 (patch-audio_out_ao__oss.c) = b957a3a2cdb58d2c083c7098571485eea3c8f46d
+SHA1 (patch-audio_out_ao__oss.c) = b07972345960e4024ad7f48b166b4ebd81cb0758
SHA1 (patch-player_main.c) = e794199990059cc95050032194bca70557c381d7
diff -r 0b267eedc8ac -r ac1a99123535 multimedia/mpv/patches/patch-audio_out_ao__oss.c
--- a/multimedia/mpv/patches/patch-audio_out_ao__oss.c Tue Oct 23 12:39:25 2018 +0000
+++ b/multimedia/mpv/patches/patch-audio_out_ao__oss.c Tue Oct 23 12:39:35 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-audio_out_ao__oss.c,v 1.7 2018/10/23 12:14:54 leot Exp $
+$NetBSD: patch-audio_out_ao__oss.c,v 1.8 2018/10/23 12:39:35 leot Exp $
- ioctl(..., SNDCTL_DSP_CHANNELS, &nchannels) for not supported nchannels does not
return an error and instead set nchannels to the default value. Instead of
@@ -6,12 +6,12 @@
--- audio/out/ao_oss.c.orig 2018-10-02 19:03:41.000000000 +0000
+++ audio/out/ao_oss.c
-@@ -336,19 +336,23 @@ static int reopen_device(struct ao *ao,
+@@ -336,19 +336,24 @@ static int reopen_device(struct ao *ao,
mp_chmap_sel_add_map(&sel, &oss_layouts[n]);
if (!ao_chmap_sel_adjust(ao, &sel, &channels))
goto fail;
- int reqchannels = channels.num;
-+ int nchannels, reqchannels;
++ int c, nchannels, reqchannels;
+ nchannels = reqchannels = channels.num;
// We only use SNDCTL_DSP_CHANNELS for >2 channels, in case some drivers don't have it
if (reqchannels > 2) {
@@ -24,9 +24,10 @@
reqchannels);
goto fail;
}
++ goto stereo;
} else {
- int c = reqchannels - 1;
-+ int c;
++stereo:
+ if (nchannels != reqchannels) {
+ // Fallback to stereo
+ c = 1;
Home |
Main Index |
Thread Index |
Old Index