[libbluray-devel] Add missing BD_ATTR_MALLOC
hpi1
git at videolan.org
Mon Dec 1 09:31:14 CET 2014
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Nov 28 14:16:48 2014 +0200| [60cdfd407a1dd04f1ebed91a608a0e4b3a1ded9d] | committer: hpi1
Add missing BD_ATTR_MALLOC
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=60cdfd407a1dd04f1ebed91a608a0e4b3a1ded9d
---
src/libbluray/bdnav/clpi_parse.h | 2 +-
src/libbluray/bdnav/meta_parse.h | 2 +-
src/libbluray/bdnav/mpls_parse.h | 2 +-
src/libbluray/bdnav/navigation.h | 4 ++--
src/libbluray/bdnav/sound_parse.h | 2 +-
5 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/libbluray/bdnav/clpi_parse.h b/src/libbluray/bdnav/clpi_parse.h
index 7f92ae3..3179ff6 100644
--- a/src/libbluray/bdnav/clpi_parse.h
+++ b/src/libbluray/bdnav/clpi_parse.h
@@ -27,7 +27,7 @@
BD_PRIVATE uint32_t clpi_lookup_spn(const CLPI_CL *cl, uint32_t timestamp, int before, uint8_t stc_id);
BD_PRIVATE uint32_t clpi_access_point(const CLPI_CL *cl, uint32_t pkt, int next, int angle_change, uint32_t *time);
-BD_PRIVATE CLPI_CL* clpi_parse(const char *path);
+BD_PRIVATE CLPI_CL* clpi_parse(const char *path) BD_ATTR_MALLOC;
BD_PRIVATE CLPI_CL* clpi_copy(const CLPI_CL* src_cl);
BD_PRIVATE void clpi_free(CLPI_CL *cl);
diff --git a/src/libbluray/bdnav/meta_parse.h b/src/libbluray/bdnav/meta_parse.h
index 19a5efb..248823a 100644
--- a/src/libbluray/bdnav/meta_parse.h
+++ b/src/libbluray/bdnav/meta_parse.h
@@ -22,7 +22,7 @@
#if !defined(_META_PARSE_H_)
#define _META_PARSE_H_
-BD_PRIVATE META_ROOT* meta_parse(const char *device_path);
+BD_PRIVATE META_ROOT* meta_parse(const char *device_path) BD_ATTR_MALLOC;
BD_PRIVATE void meta_free(META_ROOT **index);
BD_PRIVATE const META_DL* meta_get(const META_ROOT *meta_root, const char *language_code);
diff --git a/src/libbluray/bdnav/mpls_parse.h b/src/libbluray/bdnav/mpls_parse.h
index fbce590..3de7e60 100644
--- a/src/libbluray/bdnav/mpls_parse.h
+++ b/src/libbluray/bdnav/mpls_parse.h
@@ -177,7 +177,7 @@ typedef struct mpls_pl
} MPLS_PL;
-BD_PRIVATE MPLS_PL* mpls_parse(const char *path);
+BD_PRIVATE MPLS_PL* mpls_parse(const char *path) BD_ATTR_MALLOC;
BD_PRIVATE void mpls_free(MPLS_PL *pl);
BD_PRIVATE int mpls_parse_uo(uint8_t *buf, BD_UO_MASK *uo);
diff --git a/src/libbluray/bdnav/navigation.h b/src/libbluray/bdnav/navigation.h
index 1eef761..7b4b761 100644
--- a/src/libbluray/bdnav/navigation.h
+++ b/src/libbluray/bdnav/navigation.h
@@ -136,7 +136,7 @@ struct nav_title_list_s
};
BD_PRIVATE uint8_t nav_lookup_aspect(NAV_CLIP *clip, int pid);
-BD_PRIVATE NAV_TITLE* nav_title_open(const char *root, const char *playlist, unsigned angle);
+BD_PRIVATE NAV_TITLE* nav_title_open(const char *root, const char *playlist, unsigned angle) BD_ATTR_MALLOC;
BD_PRIVATE void nav_title_close(NAV_TITLE *title);
BD_PRIVATE NAV_CLIP* nav_next_clip(NAV_TITLE *title, NAV_CLIP *clip);
BD_PRIVATE NAV_CLIP* nav_packet_search(NAV_TITLE *title, uint32_t pkt, uint32_t *clip_pkt,
@@ -149,7 +149,7 @@ BD_PRIVATE NAV_CLIP* nav_mark_search(NAV_TITLE *title, unsigned mark, uint32_t *
BD_PRIVATE uint32_t nav_angle_change_search(NAV_CLIP *clip, uint32_t pkt, uint32_t *time);
BD_PRIVATE NAV_CLIP* nav_set_angle(NAV_TITLE *title, NAV_CLIP *clip, unsigned angle);
-BD_PRIVATE NAV_TITLE_LIST* nav_get_title_list(const char *root, uint32_t flags, uint32_t min_title_length);
+BD_PRIVATE NAV_TITLE_LIST* nav_get_title_list(const char *root, uint32_t flags, uint32_t min_title_length) BD_ATTR_MALLOC;
BD_PRIVATE void nav_free_title_list(NAV_TITLE_LIST *title_list);
#endif // _NAVIGATION_H_
diff --git a/src/libbluray/bdnav/sound_parse.h b/src/libbluray/bdnav/sound_parse.h
index 0f5bc30..4e17280 100644
--- a/src/libbluray/bdnav/sound_parse.h
+++ b/src/libbluray/bdnav/sound_parse.h
@@ -39,7 +39,7 @@ typedef struct {
} SOUND_DATA;
-BD_PRIVATE SOUND_DATA* sound_parse(const char *path); /* parse sound.bdmv */
+BD_PRIVATE SOUND_DATA* sound_parse(const char *path) BD_ATTR_MALLOC; /* parse sound.bdmv */
BD_PRIVATE void sound_free(SOUND_DATA **sound);
#endif // _SOUND_PARSE_H_
More information about the libbluray-devel
mailing list