pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/firefox firefox: fix wrong latency unit in stream_...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cb3d4089e656
branches:  trunk
changeset: 334429:cb3d4089e656
user:      tsutsui <tsutsui%pkgsrc.org@localhost>
date:      Mon May 27 14:19:26 2019 +0000

description:
firefox: fix wrong latency unit in stream_init() function.

Based on a patch in PR pkg/54206 from Y.Sugahara.
Bump PKGREVISION.

diffstat:

 www/firefox/Makefile                                      |   3 ++-
 www/firefox/distinfo                                      |   4 ++--
 www/firefox/patches/patch-media_libcubeb_src_cubeb__oss.c |  13 +++++++------
 3 files changed, 11 insertions(+), 9 deletions(-)

diffs (82 lines):

diff -r b39b9a506807 -r cb3d4089e656 www/firefox/Makefile
--- a/www/firefox/Makefile      Mon May 27 14:04:21 2019 +0000
+++ b/www/firefox/Makefile      Mon May 27 14:19:26 2019 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.376 2019/05/25 20:17:04 szptvlfn Exp $
+# $NetBSD: Makefile,v 1.377 2019/05/27 14:19:26 tsutsui Exp $
 
 FIREFOX_VER=           ${MOZ_BRANCH}${MOZ_BRANCH_MINOR}
 MOZ_BRANCH=            67.0
 MOZ_BRANCH_MINOR=      
+PKGREVISION=           1
 
 DISTNAME=      firefox-${FIREFOX_VER}.source
 PKGNAME=       ${DISTNAME:S/.source//:S/b/beta/:S/esr//}
diff -r b39b9a506807 -r cb3d4089e656 www/firefox/distinfo
--- a/www/firefox/distinfo      Mon May 27 14:04:21 2019 +0000
+++ b/www/firefox/distinfo      Mon May 27 14:19:26 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.351 2019/05/22 13:32:51 ryoon Exp $
+$NetBSD: distinfo,v 1.352 2019/05/27 14:19:26 tsutsui Exp $
 
 SHA1 (firefox-67.0.source.tar.xz) = c7a5f3182999e5efed5c714653adc538bb75aa53
 RMD160 (firefox-67.0.source.tar.xz) = 48e96058ef1bfb2939d8da93fd6807d212d0df4e
@@ -25,7 +25,7 @@
 SHA1 (patch-media_libcubeb_gtest_moz.build) = ea6dcc7ceeb76ce1fb9d508cf43080a2eef3a9e4
 SHA1 (patch-media_libcubeb_src_cubeb.c) = 4fe5512c89fa9e0dd64573d2784e5e0f7fd4d866
 SHA1 (patch-media_libcubeb_src_cubeb__alsa.c) = f359a66a22f11142d05746e15894d998d3e3bf5a
-SHA1 (patch-media_libcubeb_src_cubeb__oss.c) = 9b29bbd1c923e574aa5a9ecc17170ad5ef4778c0
+SHA1 (patch-media_libcubeb_src_cubeb__oss.c) = 103f751d5a7bc14a81a6ed43e1afc722bc092f7e
 SHA1 (patch-media_libcubeb_src_moz.build) = 10f8355e3b3c6d35cca99f3717246e8658860737
 SHA1 (patch-media_libcubeb_update.sh) = cddb5849fa2972e961e4891bc8a79a650df06d8d
 SHA1 (patch-media_libpng_pngpriv.h) = c8084332560017cd7c9b519b61d125fa28af0dbc
diff -r b39b9a506807 -r cb3d4089e656 www/firefox/patches/patch-media_libcubeb_src_cubeb__oss.c
--- a/www/firefox/patches/patch-media_libcubeb_src_cubeb__oss.c Mon May 27 14:04:21 2019 +0000
+++ b/www/firefox/patches/patch-media_libcubeb_src_cubeb__oss.c Mon May 27 14:19:26 2019 +0000
@@ -1,8 +1,9 @@
-$NetBSD: patch-media_libcubeb_src_cubeb__oss.c,v 1.12 2018/11/04 00:38:45 ryoon Exp $
+$NetBSD: patch-media_libcubeb_src_cubeb__oss.c,v 1.13 2019/05/27 14:19:26 tsutsui Exp $
 
 * Restore OSS audio support code
+* fix wrong latency values in stream_init (PR pkg/54206)
 
---- media/libcubeb/src/cubeb_oss.c.orig        2018-10-25 10:52:12.966650761 +0000
+--- media/libcubeb/src/cubeb_oss.c.orig        2019-05-24 13:05:19.117086384 +0000
 +++ media/libcubeb/src/cubeb_oss.c
 @@ -0,0 +1,453 @@
 +/*
@@ -240,14 +241,14 @@
 +  return NULL;
 +}
 +
-+static void oss_try_set_latency(cubeb_stream* stream, unsigned int latency)
++static void oss_try_set_latency(cubeb_stream* stream, unsigned int latency_frames)
 +{
 +  unsigned int latency_bytes, n_frag;
 +  int frag;
 +  /* fragment size of 1024 is a good choice with good chances to be accepted */
 +  unsigned int frag_log=10; /* 2^frag_log = fragment size */
 +  latency_bytes =
-+    latency*stream->params.rate*stream->params.channels*sizeof(uint16_t)/1000;
++    latency_frames*stream->params.channels*sizeof(uint16_t);
 +  n_frag = latency_bytes>>frag_log;
 +  frag = (n_frag<<16) | frag_log;
 +  /* Even if this fails we wish to continue, not checking for errors */
@@ -260,7 +261,7 @@
 +                           cubeb_stream_params * input_stream_params,
 +                           cubeb_devid output_device,
 +                           cubeb_stream_params * output_stream_params,
-+                           unsigned int latency,
++                           unsigned int latency_frames,
 +                           cubeb_data_callback data_callback,
 +                           cubeb_state_callback state_callback, void * user_ptr)
 +{
@@ -296,7 +297,7 @@
 +  stream->volume = 1.0;
 +  stream->panning = 0.0;
 +
-+  oss_try_set_latency(stream, latency); 
++  oss_try_set_latency(stream, latency_frames); 
 +
 +  stream->floating = 0;
 +  SET(SNDCTL_DSP_CHANNELS, stream->params.channels);



Home | Main Index | Thread Index | Old Index