mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-12-26 11:17:44 +01:00
[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:
parent
84c5412b7f
commit
f7a129e5b7
3 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue