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

Unified Diff: ppapi/proxy/video_encoder_resource.cc

Issue 1069653002: ppapi: VideoEncoder: fix reported value for GetSupportedProfiles() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « ppapi/examples/video_encode/video_encode.cc ('k') | ppapi/proxy/video_encoder_resource_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/video_encoder_resource.cc
diff --git a/ppapi/proxy/video_encoder_resource.cc b/ppapi/proxy/video_encoder_resource.cc
index d337b7b8ee6ca845aa05b405c1d1ccbd0896410c..04418671b0fa8db0e2489482171d4f5669c72509 100644
--- a/ppapi/proxy/video_encoder_resource.cc
+++ b/ppapi/proxy/video_encoder_resource.cc
@@ -267,7 +267,8 @@ void VideoEncoderResource::OnPluginMsgGetSupportedProfilesReply(
return;
}
- RunCallback(&get_supported_profiles_callback_, PP_OK);
+ RunCallback(&get_supported_profiles_callback_,
+ static_cast<int32_t>(profiles.size()));
bbudge 2015/04/08 12:47:31 nit: base::checked_cast is how we're doing this no
}
void VideoEncoderResource::OnPluginMsgInitializeReply(
« no previous file with comments | « ppapi/examples/video_encode/video_encode.cc ('k') | ppapi/proxy/video_encoder_resource_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698