diff options
author | lionel.g.landwerlin <lionel.g.landwerlin@intel.com> | 2015-04-17 09:31:13 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-17 16:31:36 +0000 |
commit | efb23ba854a52a7363e287ba5501b7d933b235ff (patch) | |
tree | 2f87b1461f45693dc9724a020363388c8adebfc4 /ppapi/examples | |
parent | 742b4e2e806240e87de922590bd4889bf6a4383f (diff) | |
download | chromium_src-efb23ba854a52a7363e287ba5501b7d933b235ff.zip chromium_src-efb23ba854a52a7363e287ba5501b7d933b235ff.tar.gz chromium_src-efb23ba854a52a7363e287ba5501b7d933b235ff.tar.bz2 |
ppapi: VideoEncoder: fix reported value for GetSupportedProfiles()
GetSupportedProfiles() should return the number of supported profiles
or a negative value in case of error. Prior to this change, we
reported PP_OK instead of the number of profiles.
BUG=455409
Review URL: https://codereview.chromium.org/1069653002
Cr-Commit-Position: refs/heads/master@{#325649}
Diffstat (limited to 'ppapi/examples')
-rw-r--r-- | ppapi/examples/video_encode/video_encode.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ppapi/examples/video_encode/video_encode.cc b/ppapi/examples/video_encode/video_encode.cc index 66d141a..c6a0921 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); } |