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

Unified Diff: ppapi/cpp/dev/video_decoder_dev.cc

Issue 4310002: Make PPAPI headers compile with C compilers (gcc on Linux & Mac and MSVS on W... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | « ppapi/cpp/dev/url_util_dev.cc ('k') | ppapi/cpp/dev/widget_dev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/video_decoder_dev.cc
===================================================================
--- ppapi/cpp/dev/video_decoder_dev.cc (revision 65116)
+++ ppapi/cpp/dev/video_decoder_dev.cc (working copy)
@@ -5,6 +5,7 @@
#include "ppapi/cpp/dev/video_decoder_dev.h"
#include "ppapi/c/pp_errors.h"
+#include "ppapi/cpp/common.h"
#include "ppapi/cpp/instance.h"
#include "ppapi/cpp/module.h"
#include "ppapi/cpp/module_impl.h"
@@ -53,18 +54,17 @@
int32_t* num_config) {
if (!video_decoder_f)
return false;
- return video_decoder_f->GetConfig(instance.pp_instance(),
- codec,
- configs,
- config_size,
- num_config);
+ return PPBoolToBool(video_decoder_f->GetConfig(instance.pp_instance(),
+ codec,
+ configs,
+ config_size,
+ num_config));
}
bool VideoDecoder_Dev::Decode(PP_VideoCompressedDataBuffer_Dev& input_buffer) {
if (!video_decoder_f || !pp_resource())
return false;
- return video_decoder_f->Decode(pp_resource(),
- &input_buffer);
+ return PPBoolToBool(video_decoder_f->Decode(pp_resource(), &input_buffer));
}
int32_t VideoDecoder_Dev::Flush(PP_CompletionCallback callback) {
@@ -77,8 +77,9 @@
PP_VideoUncompressedDataBuffer_Dev& buffer) {
if (!video_decoder_f || !pp_resource())
return false;
- return video_decoder_f->ReturnUncompressedDataBuffer(pp_resource(),
- &buffer);
+ return PPBoolToBool(
+ video_decoder_f->ReturnUncompressedDataBuffer(pp_resource(),
+ &buffer));
}
} // namespace pp
« no previous file with comments | « ppapi/cpp/dev/url_util_dev.cc ('k') | ppapi/cpp/dev/widget_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698