[meta]: fix compile warning and error

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1023 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming 2016-07-14 11:06:18 +00:00
parent 84c5412b7f
commit f7a129e5b7
3 changed files with 5 additions and 2 deletions

View file

@ -269,6 +269,8 @@ if(WARNINGS_AS_ERRORS)
add_definitions(/WX)
endif()
endif(WARNINGS_AS_ERRORS)
# disable multichar warning
add_definitions(-Wno-multichar)
# ----------------------------------------------------------------------------
# Visual leak detector

View file

@ -9,6 +9,7 @@ add_library(mpp_base STATIC
mpp_buffer.cpp
mpp_packet.cpp
mpp_frame.cpp
mpp_meta.cpp
mpp_bitread.c
mpp_bitput.c
)

View file

@ -116,7 +116,7 @@ public:
void put_node(MppMetaNode *node);
};
RK_S32 get_index_of_key(MppMetaKey key, MppMetaKey type)
RK_S32 get_index_of_key(MppMetaKey key, MppMetaType type)
{
RK_S32 i = 0;
RK_S32 num = MPP_ARRAY_ELEMS(meta_defs);
@ -208,7 +208,7 @@ void MppMetaService::put_node(MppMetaNode *node)
mpp_frame_deinit(&node->val.frame);
} break;
case MPP_META_TYPE_PACKET : {
mpp_packet_deinit(node->val.packet);
mpp_packet_deinit(&node->val.packet);
} break;
case MPP_META_TYPE_BUFFER : {
mpp_buffer_put(node->val.buffer);