Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 301183 Details for
Bug 402595
www-client/chromium-18.0.1025.1-r1 build failure with USE=pulseaudio
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix from upstream bug
pulse-compile-fix.diff (text/plain), 3.00 KB, created by
crabbed halo ablution
on 2012-02-07 19:59:40 UTC
(
hide
)
Description:
Fix from upstream bug
Filename:
MIME Type:
Creator:
crabbed halo ablution
Created:
2012-02-07 19:59:40 UTC
Size:
3.00 KB
patch
obsolete
>diff --git a/media/audio/pulse/pulse_output.cc b/media/audio/pulse/pulse_output.cc >index c58d5bf..55ce3d2 100644 >--- a/media/audio/pulse/pulse_output.cc >+++ b/media/audio/pulse/pulse_output.cc >@@ -126,7 +126,7 @@ void PulseAudioOutputStream::WriteRequestCallback(pa_stream* playback_handle, > PulseAudioOutputStream* stream = > reinterpret_cast<PulseAudioOutputStream*>(stream_addr); > >- DCHECK_EQ(stream->manager_->GetMessageLoop(), MessageLoop::current()); >+ DCHECK(stream->manager_->GetMessageLoop()->BelongsToCurrentThread()); > > stream->write_callback_handled_ = true; > >@@ -153,7 +153,7 @@ PulseAudioOutputStream::PulseAudioOutputStream(const AudioParameters& params, > write_callback_handled_(false), > ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)), > source_callback_(NULL) { >- DCHECK_EQ(manager_->GetMessageLoop(), MessageLoop::current()); >+ DCHECK(manager_->GetMessageLoop()->BelongsToCurrentThread()); > > // TODO(slock): Sanity check input values. > } >@@ -167,7 +167,7 @@ PulseAudioOutputStream::~PulseAudioOutputStream() { > } > > bool PulseAudioOutputStream::Open() { >- DCHECK_EQ(manager_->GetMessageLoop(), MessageLoop::current()); >+ DCHECK(manager_->GetMessageLoop()->BelongsToCurrentThread()); > > // TODO(slock): Possibly move most of this to an OpenPlaybackDevice function > // in a new class 'pulse_util', like alsa_util. >@@ -270,7 +270,7 @@ void PulseAudioOutputStream::Reset() { > } > > void PulseAudioOutputStream::Close() { >- DCHECK_EQ(manager_->GetMessageLoop(), MessageLoop::current()); >+ DCHECK(manager_->GetMessageLoop()->BelongsToCurrentThread()); > > Reset(); > >@@ -280,7 +280,7 @@ void PulseAudioOutputStream::Close() { > } > > void PulseAudioOutputStream::WaitForWriteRequest() { >- DCHECK_EQ(manager_->GetMessageLoop(), MessageLoop::current()); >+ DCHECK(manager_->GetMessageLoop()->BelongsToCurrentThread()); > > if (stream_stopped_) > return; >@@ -382,7 +382,7 @@ void PulseAudioOutputStream::WriteToStream(size_t bytes_to_write, > } > > void PulseAudioOutputStream::Start(AudioSourceCallback* callback) { >- DCHECK_EQ(manager_->GetMessageLoop(), MessageLoop::current()); >+ DCHECK(manager_->GetMessageLoop()->BelongsToCurrentThread()); > CHECK(callback); > DLOG_IF(ERROR, !playback_handle_) > << "Open() has not been called successfully"; >@@ -402,19 +402,19 @@ void PulseAudioOutputStream::Start(AudioSourceCallback* callback) { > } > > void PulseAudioOutputStream::Stop() { >- DCHECK_EQ(manager_->GetMessageLoop(), MessageLoop::current()); >+ DCHECK(manager_->GetMessageLoop()->BelongsToCurrentThread()); > > stream_stopped_ = true; > } > > void PulseAudioOutputStream::SetVolume(double volume) { >- DCHECK_EQ(manager_->GetMessageLoop(), MessageLoop::current()); >+ DCHECK(manager_->GetMessageLoop()->BelongsToCurrentThread()); > > volume_ = static_cast<float>(volume); > } > > void PulseAudioOutputStream::GetVolume(double* volume) { >- DCHECK_EQ(manager_->GetMessageLoop(), MessageLoop::current()); >+ DCHECK(manager_->GetMessageLoop()->BelongsToCurrentThread()); > > *volume = volume_; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 402595
: 301183