注册 登录  
 加关注
查看详情
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

jasy.ice 的小房子

iceplayer gtk linux c

 
 
 

日志

 
 

cm7的一些bug?01  

2011-04-05 11:14:21|  分类: android |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
In file included from frameworks/base/media/libstagefright/omx/OMXNodeInstance.cpp:22:
frameworks/base/media/libstagefright/omx/OMXMaster.h:28: error: expected unqualified-id before 'namespace'
frameworks/base/media/libstagefright/omx/OMXMaster.h:28: error: expected constructor, destructor, or type conversion before 'namespace'
In file included from frameworks/base/media/libstagefright/omx/OMX.cpp:37:
frameworks/base/media/libstagefright/omx/OMXMaster.h:28: error: expected unqualified-id before 'namespace'
frameworks/base/media/libstagefright/omx/OMXMaster.h:28: error: expected constructor, destructor, or type conversion before 'namespace'
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libstagefright_omx_intermediates/OMXNodeInstance.o] 错误 1
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libstagefright_omx_intermediates/OMX.o] 错误 1

将 frameworks/base/include/media/stagefright/OMXPluginBase.h 内容替换成:

/*
 * Copyright (C) 2009 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef OMX_PLUGIN_BASE_H_

#define OMX_PLUGIN_BASE_H_

#include <sys/types.h>

#include <OMX_Component.h>

#include <utils/String8.h>
#include <utils/Vector.h>

namespace android {

struct OMXComponentBase;

struct OMXPluginBase {
    OMXPluginBase() {}
    virtual ~OMXPluginBase() {}

    virtual OMX_ERRORTYPE makeComponentInstance(
            const char *name,
            const OMX_CALLBACKTYPE *callbacks,
            OMX_PTR appData,
            OMX_COMPONENTTYPE **component) = 0;

    virtual OMX_ERRORTYPE destroyComponentInstance(
            OMX_COMPONENTTYPE *component) = 0;

    virtual OMX_ERRORTYPE enumerateComponents(
            OMX_STRING name,
            size_t size,
            OMX_U32 index) = 0;

    virtual OMX_ERRORTYPE getRolesOfComponent(
            const char *name,
            Vector<String8> *roles) = 0;

private:
    OMXPluginBase(const OMXPluginBase &);
    OMXPluginBase &operator=(const OMXPluginBase &);
};

}  // namespace android

#endif  // OMX_PLUGIN_BASE_H_
  评论这张
 
阅读(904)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018