Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1510)

Unified Diff: content/renderer/media/audio_input_device.cc

Issue 9316084: Switch back to 'int' instead of uint32 and call CancelIo before closing the socket handle. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/media/audio_device.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/audio_input_device.cc
diff --git a/content/renderer/media/audio_input_device.cc b/content/renderer/media/audio_input_device.cc
index 4a346e9b668acebcfe13b89b6381de27527825e5..0c81e38b20ffcd6a4721c6418a1239241210f5a1 100644
--- a/content/renderer/media/audio_input_device.cc
+++ b/content/renderer/media/audio_input_device.cc
@@ -275,7 +275,7 @@ void AudioInputDevice::Run() {
(audio_parameters_.bits_per_sample / 8) * samples_per_ms;
while (true) {
- uint32 pending_data = 0;
+ int pending_data = 0;
size_t received = socket->Receive(&pending_data, sizeof(pending_data));
if (received != sizeof(pending_data)) {
DCHECK(received == 0U);
« no previous file with comments | « content/renderer/media/audio_device.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698