]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
mp4: Rename mp4_open_read() to mp4_open().
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 28 Aug 2021 18:53:23 +0000 (20:53 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 27 Jun 2022 14:45:56 +0000 (16:45 +0200)
The function may be called with the intention to update the meta tags
later by calling mp4_update_meta(), albeit mp4_open_meta() is cheaper
if the caller only wants to modify the metadata. The old name is thus
slightly misleading, and it's longer.

aac_afh.c
mp4.c
mp4.h

index 30e52fcd5ce700670d9147a83fa751e93f0191de..7be441ab209b5ee7ca85c371f229f0c76ece96cb 100644 (file)
--- a/aac_afh.c
+++ b/aac_afh.c
@@ -68,7 +68,7 @@ static int aac_afh_open(const void *map, size_t mapsize, void **afh_context)
        c->cb.seek = aac_afh_seek_cb;
        c->cb.user_data = c;
 
-       ret = mp4_open_read(&c->cb, &c->mp4);
+       ret = mp4_open(&c->cb, &c->mp4);
        if (ret < 0)
                goto free_ctx;
        *afh_context = c;
diff --git a/mp4.c b/mp4.c
index 02294265916745275f52dc1e400fbe6ebcd9e64d..2121155ccebeed885c78221e994e81acca3de846 100644 (file)
--- a/mp4.c
+++ b/mp4.c
@@ -617,7 +617,7 @@ fail:
        return ret;
 }
 
-int mp4_open_read(const struct mp4_callback *cb, struct mp4 **result)
+int mp4_open(const struct mp4_callback *cb, struct mp4 **result)
 {
        struct mp4 *f;
        int ret;
diff --git a/mp4.h b/mp4.h
index 4c4aed2210cf472473c151529c5b1928dbd288cc..c6f53ebc04a477695dad69bc8103593212f70a6e 100644 (file)
--- a/mp4.h
+++ b/mp4.h
@@ -19,7 +19,7 @@ struct mp4_metadata {
 struct mp4; /* opaque */
 
 int mp4_set_sample_position(struct mp4 *f, uint32_t sample);
-int mp4_open_read(const struct mp4_callback *cb, struct mp4 **result);
+int mp4_open(const struct mp4_callback *cb, struct mp4 **result);
 void mp4_close(struct mp4 *f);
 int mp4_get_sample_size(const struct mp4 *f, uint32_t sample, uint32_t *result);
 uint16_t mp4_get_sample_rate(const struct mp4 *f);