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

Unified Diff: native_client_sdk/src/examples/api/video_encode/video_encode.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 | « no previous file | ppapi/examples/video_encode/video_encode.cc » ('j') | ppapi/proxy/video_encoder_resource.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/examples/api/video_encode/video_encode.cc
diff --git a/native_client_sdk/src/examples/api/video_encode/video_encode.cc b/native_client_sdk/src/examples/api/video_encode/video_encode.cc
index 702786c0ed8a16a395a60cd79dda412357d4b4a6..806bca498d3d0f0ebced3cf5c2c87fdd7371cf49 100644
--- a/native_client_sdk/src/examples/api/video_encode/video_encode.cc
+++ b/native_client_sdk/src/examples/api/video_encode/video_encode.cc
@@ -281,7 +281,7 @@ void VideoEncoderInstance::OnEncoderProbed(
pp::VarArray js_profiles;
dict.Set(pp::Var("profiles"), js_profiles);
- if (result != PP_OK) {
+ if (result < 0) {
LogError(result, "Cannot get supported profiles");
PostMessage(dict);
}
« no previous file with comments | « no previous file | ppapi/examples/video_encode/video_encode.cc » ('j') | ppapi/proxy/video_encoder_resource.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698