mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 05:31:22 +00:00
chromium: Add pulse_audio_fix.patch to nixpkgs.
The patch previously was fetched from an Arch Linux contributor but is no longer available there anymore. So, this is only an intermediate fix until channels get updated (very soon I hope, even though chromium 25 could get quite messy). Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
691bd7b9dd
commit
e2a4295844
|
@ -79,10 +79,8 @@ let
|
|||
post23 = !versionOlder sourceInfo.version "24.0.0.0";
|
||||
post24 = !versionOlder sourceInfo.version "25.0.0.0";
|
||||
|
||||
maybeFixPulseAudioBuild = optional (post23 && pulseSupport) (fetchurl {
|
||||
url = http://archrepo.jeago.com/sources/chromium-dev/pulse_audio_fix.patch;
|
||||
sha256 = "1w91mirrkqigdhsj892mqxlc0nlv1dsp5shc46w9xf8nl96jxgfb";
|
||||
});
|
||||
maybeFixPulseAudioBuild = optional (post23 && pulseSupport)
|
||||
./pulse_audio_fix.patch;
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "${packageName}-${version}";
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
--- chromium-build/media/audio/pulse/pulse_output.cc.orig 2012-10-26 09:44:38.509209905 -0700
|
||||
+++ chromium-build/media/audio/pulse/pulse_output.cc 2012-10-26 09:45:32.178819603 -0700
|
||||
@@ -86,7 +86,7 @@
|
||||
|
||||
// All channel maps have the same size array of channel positions.
|
||||
for (unsigned int channel = 0; channel != CHANNELS_MAX; ++channel) {
|
||||
- int channel_position = kChannelOrderings[channel_layout][channel];
|
||||
+ int channel_position = ChannelOrder(channel_layout, static_cast<Channels>(channel));
|
||||
if (channel_position > -1) {
|
||||
channel_map.map[channel_position] = ChromiumToPAChannelPosition(
|
||||
static_cast<Channels>(channel));
|
Loading…
Reference in a new issue