| Index: ppapi/examples/gles2/gles2.cc
|
| diff --git a/ppapi/examples/gles2/gles2.cc b/ppapi/examples/gles2/gles2.cc
|
| index e46f02dca3a84315e9a9bac3ddcf61d06e779ffc..950d9f2b4e2f4c02fb0a49ea3a25ae2854c86950 100644
|
| --- a/ppapi/examples/gles2/gles2.cc
|
| +++ b/ppapi/examples/gles2/gles2.cc
|
| @@ -217,12 +217,7 @@ void GLES2DemoInstance::InitializeDecoder() {
|
| video_decoder_ = new pp::VideoDecoder_Dev(*this);
|
|
|
| PP_VideoConfigElement configs = PP_VIDEOATTR_DICTIONARY_TERMINATOR;
|
| - pp::CompletionCallback cb =
|
| - callback_factory_.NewCallback(&GLES2DemoInstance::DecoderInitDone);
|
| - video_decoder_->Initialize(&configs, *context_, cb);
|
| -}
|
| -
|
| -void GLES2DemoInstance::DecoderInitDone(int32_t result) {
|
| + assert(video_decoder_->Initialize(&configs, *context_) == PP_OK);
|
| DecodeNextNALUs();
|
| }
|
|
|
|
|