Fix samples metadata processing

In this patch we are fix metadata processing for samples with
unexpected metadata.

Change-Id: Ie95967c6b0700e5d0777dd236d1824a148f9f276
This commit is contained in:
Ilya Tyaptin 2016-09-28 16:20:43 +03:00
parent 58a3f8cff7
commit 21b9ca6f00
1 changed files with 3 additions and 0 deletions

View File

@ -100,6 +100,9 @@ function get_field(field, metadata)
if type(field) == 'table' then
value = metadata
for _, field_part in ipairs(field) do
if not value then
break
end
value = value[field_part]
end
else