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

Unified Diff: media/tools/wav_ola_test.cc

Issue 155160: Test fwrite returnval in wav_ola_test.cc to fix ubuntu compile warning. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/tools/wav_ola_test.cc
===================================================================
--- media/tools/wav_ola_test.cc (revision 20034)
+++ media/tools/wav_ola_test.cc (working copy)
@@ -147,7 +147,10 @@
wav.subchunk1_size = 16;
wav.subchunk2_size = bytes_written;
fseek(output.get(), 0, SEEK_SET);
- fwrite(&wav, sizeof(wav), 1, output.get());
+ if (fwrite(&wav, sizeof(wav), 1, output.get()) < 1) {
+ LOG(ERROR) << "could not write wav header.";
+ return 1;
+ }
return 0;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698