[mpp_meta]: fix possible error in mpp_meta and mpp_buffer

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1034 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2016-07-16 10:12:11 +00:00
parent a31103d3f0
commit 947da74b5d
2 changed files with 18 additions and 9 deletions

View File

@@ -677,7 +677,7 @@ void MppBufferService::destroy_group(MppBufferGroupImpl *group)
misc_ion_int = NULL;
} else {
/* if only legacy group left dump the legacy group */
if (group_count == 1 && misc_ion_int->buffer_count) {
if (group_count == 1 && misc_ion_int && misc_ion_int->buffer_count) {
mpp_log("found legacy group has buffer remain, start dumping\n");
mpp_buffer_group_dump(misc_ion_int);
abort();