summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashokm@nvidia.com <ashokm@nvidia.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-27 06:54:37 +0000
committerashokm@nvidia.com <ashokm@nvidia.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-27 06:54:37 +0000
commite2dcc6bf7ba98799e0e289505dd685889dd5ccb2 (patch)
tree5892d8d804e3290f3f098137e8b0e4bae36e1079
parentd6fdf6827a8e5f6aa1ee06b9defde1fa8ae302a3 (diff)
downloadchromium_src-e2dcc6bf7ba98799e0e289505dd685889dd5ccb2.zip
chromium_src-e2dcc6bf7ba98799e0e289505dd685889dd5ccb2.tar.gz
chromium_src-e2dcc6bf7ba98799e0e289505dd685889dd5ccb2.tar.bz2
gles2: set the profile info in config
Set the porfile info when creating a decoder. Test= gles2 plugin Review URL: http://codereview.chromium.org/7749004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98559 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--ppapi/examples/gles2/gles2.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/ppapi/examples/gles2/gles2.cc b/ppapi/examples/gles2/gles2.cc
index 1a3a09b..f661d0a 100644
--- a/ppapi/examples/gles2/gles2.cc
+++ b/ppapi/examples/gles2/gles2.cc
@@ -235,12 +235,16 @@ void GLES2DemoInstance::DidChangeView(
}
void GLES2DemoInstance::InitializeDecoders() {
- PP_VideoConfigElement configs = PP_VIDEOATTR_DICTIONARY_TERMINATOR;
+ PP_VideoConfigElement configs[] = {
+ PP_VIDEOATTR_BITSTREAMFORMATKEY_H264_PROFILE,
+ PP_H264PROFILE_BASELINE,
+ PP_VIDEOATTR_DICTIONARY_TERMINATOR,
+ };
assert(video_decoders_.empty());
for (int i = 0; i < kNumDecoders; ++i) {
DecoderClient* client = new DecoderClient(
- this, new pp::VideoDecoder_Dev(*this, *context_, &configs));
+ this, new pp::VideoDecoder_Dev(*this, *context_, configs));
assert(!client->decoder()->is_null());
assert(video_decoders_.insert(std::make_pair(
client->decoder()->pp_resource(), client)).second);