| 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);
|
| }
|
|
|