The old name is misleading because the returned file handle is by no
means opened read-only. In fact we call mp4ff_meta_update() on it,
which alters the file to store the modified metadata.
return ret;
lseek(fd, 0, SEEK_SET);
- mp4ff = mp4ff_open_read_metaonly(&cb);
+ mp4ff = mp4ff_open_meta(&cb);
if (!mp4ff)
return -E_MP4FF_OPEN;
return total;
}
-struct mp4ff *mp4ff_open_read_metaonly(struct mp4ff_callback *f)
+struct mp4ff *mp4ff_open_meta(struct mp4ff_callback *f)
{
struct mp4ff *ff = para_calloc(sizeof(struct mp4ff));
uint32_t mp4ff_get_channel_count(const struct mp4ff * f, int32_t track);
int32_t mp4ff_num_samples(const struct mp4ff *f, int track);
uint64_t mp4ff_get_duration(const struct mp4ff *f, int32_t track);
-struct mp4ff *mp4ff_open_read_metaonly(struct mp4ff_callback *f);
+struct mp4ff *mp4ff_open_meta(struct mp4ff_callback *f);
int mp4ff_meta_get_by_index(const struct mp4ff *f, unsigned int index,
char **item, char **value);