summaryrefslogtreecommitdiff
path: root/math/metadb.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/metadb.c')
-rw-r--r--math/metadb.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/math/metadb.c b/math/metadb.c
index ce910e3..207dd46 100644
--- a/math/metadb.c
+++ b/math/metadb.c
@@ -170,6 +170,9 @@ encode_meta(struct meta *mp, size_t *siz)
*siz += LENGTH(mp->img);
*siz += LENGTH(mp->language);
*siz += LENGTH(mp->tokens);
+ *siz += LENGTH(mp->video);
+ *siz += LENGTH(mp->video_hq);
+ *siz += LENGTH(mp->video_lq);
buf = malloc(*siz);
assert(buf);
@@ -200,6 +203,9 @@ encode_meta(struct meta *mp, size_t *siz)
PUTSTR(buf, mp->img, blen, len);
PUTSTR(buf, mp->language, blen, len);
PUTSTR(buf, mp->tokens, blen, len);
+ PUTSTR(buf, mp->video, blen, len);
+ PUTSTR(buf, mp->video_hq, blen, len);
+ PUTSTR(buf, mp->video_lq, blen, len);
return buf;
}
@@ -233,6 +239,9 @@ decode_meta(struct meta *mp, char *buf)
GETSTR(mp->img, buf, blen);
GETSTR(mp->language, buf, blen);
GETSTR(mp->tokens, buf, blen);
+ GETSTR(mp->video, buf, blen);
+ GETSTR(mp->video_hq, buf, blen);
+ GETSTR(mp->video_lq, buf, blen);
return mp;
}