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

Unified Diff: ppapi/examples/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
Index: ppapi/examples/video_encode/video_encode.cc
diff --git a/ppapi/examples/video_encode/video_encode.cc b/ppapi/examples/video_encode/video_encode.cc
index 66d141a525648ef1551707440e20909ed560e721..c6a09211a8c50fc0fb3811ab35a778cc9dd7cb77 100644
--- a/ppapi/examples/video_encode/video_encode.cc
+++ b/ppapi/examples/video_encode/video_encode.cc
@@ -288,7 +288,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);
}

Powered by Google App Engine
This is Rietveld 408576698