summaryrefslogtreecommitdiffstats
path: root/media/audio/linux/alsa_output.cc
diff options
context:
space:
mode:
authorenal@chromium.org <enal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-24 18:02:04 +0000
committerenal@chromium.org <enal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-24 18:02:04 +0000
commite6b05e8c5d2d8cc56d6f6c238ff7cf674d05c4b6 (patch)
treea4ad67abf8535066886876d55533f83a6d80f4e3 /media/audio/linux/alsa_output.cc
parentcd187678ad319a37e01acc91e80d0ebc419cecc4 (diff)
downloadchromium_src-e6b05e8c5d2d8cc56d6f6c238ff7cf674d05c4b6.zip
chromium_src-e6b05e8c5d2d8cc56d6f6c238ff7cf674d05c4b6.tar.gz
chromium_src-e6b05e8c5d2d8cc56d6f6c238ff7cf674d05c4b6.tar.bz2
Remove unused parameter "stream" from all variants of OnMoreData().
(Also fixing some minor lint errors...) Review URL: http://codereview.chromium.org/10184011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133726 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/linux/alsa_output.cc')
-rw-r--r--media/audio/linux/alsa_output.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/audio/linux/alsa_output.cc b/media/audio/linux/alsa_output.cc
index 9ed2df0..ce301ce 100644
--- a/media/audio/linux/alsa_output.cc
+++ b/media/audio/linux/alsa_output.cc
@@ -385,7 +385,7 @@ void AlsaPcmOutputStream::BufferPacket(bool* source_exhausted) {
// that aren't large enough to make a frame. Without this, packet writing
// may stall because the last few bytes in the packet may never get used by
// WritePacket.
- DCHECK(packet_size % bytes_per_frame_ == 0);
+ DCHECK_EQ(0u, packet_size % bytes_per_frame_);
packet_size = (packet_size / bytes_per_frame_) * bytes_per_frame_;
if (should_downmix_) {
@@ -792,7 +792,7 @@ uint32 AlsaPcmOutputStream::RunDataCallback(uint8* dest,
TRACE_EVENT0("audio", "AlsaPcmOutputStream::RunDataCallback");
if (source_callback_)
- return source_callback_->OnMoreData(this, dest, max_size, buffers_state);
+ return source_callback_->OnMoreData(dest, max_size, buffers_state);
return 0;
}