[mpp]: change packet/frame deinit function and always return ok for function get_frame/get_packet

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@160 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2015-08-25 08:14:44 +00:00
parent 005d6da4fc
commit f5c7532965
7 changed files with 33 additions and 51 deletions

View File

@@ -137,11 +137,10 @@ MPP_RET Mpp::put_packet(MppPacket packet)
MPP_RET Mpp::get_frame(MppFrame *frame)
{
MPP_RET ret = MPP_NOK;
if (frames->list_size()) {
ret = (MPP_RET)frames->del_at_tail(frame, sizeof(frame));
frames->del_at_tail(frame, sizeof(frame));
}
return ret;
return MPP_OK;
}
MPP_RET Mpp::put_frame(MppFrame frame)
@@ -152,10 +151,9 @@ MPP_RET Mpp::put_frame(MppFrame frame)
MPP_RET Mpp::get_packet(MppPacket *packet)
{
MPP_RET ret = MPP_NOK;
if (packets->list_size()) {
ret = (MPP_RET)packets->del_at_tail(packet, sizeof(packet));
packets->del_at_tail(packet, sizeof(packet));
}
return ret;
return MPP_OK;
}