summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2014-05-06 22:46:09 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-05-06 22:46:09 +0000
commit8e085cbeccb1138d52a0a423af02e6ab41b4fee4 (patch)
tree1d8b84f794ba38e0670e0ce7321d5ee00c90fc61 /include
parent14136039b752376240698e8b422c76de01488bc5 (diff)
parent7c9b141d551fde406f199f0dd21582f8551aea23 (diff)
downloadframeworks_av-8e085cbeccb1138d52a0a423af02e6ab41b4fee4.zip
frameworks_av-8e085cbeccb1138d52a0a423af02e6ab41b4fee4.tar.gz
frameworks_av-8e085cbeccb1138d52a0a423af02e6ab41b4fee4.tar.bz2
Merge "MediaFormat owns its strings"
Diffstat (limited to 'include')
-rw-r--r--include/ndk/NdkMediaFormat.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/ndk/NdkMediaFormat.h b/include/ndk/NdkMediaFormat.h
index 16f4348..4489b78 100644
--- a/include/ndk/NdkMediaFormat.h
+++ b/include/ndk/NdkMediaFormat.h
@@ -40,7 +40,8 @@ AMediaFormat *AMediaFormat_new();
int AMediaFormat_delete(AMediaFormat*);
/**
- * Debug string. Caller must free.
+ * Human readable representation of the format. The returned string is owned by the format,
+ * and remains valid until the next call to toString, or until the format is deleted.
*/
const char* AMediaFormat_toString(AMediaFormat*);
@@ -50,7 +51,8 @@ bool AMediaFormat_getFloat(AMediaFormat*, const char *name, float *out);
bool AMediaFormat_getDouble(AMediaFormat*, const char *name, double *out);
bool AMediaFormat_getSize(AMediaFormat*, const char *name, size_t *out);
/**
- * Caller must free the returned string
+ * The returned string is owned by the format, and remains valid until the next call to getString,
+ * or until the format is deleted.
*/
bool AMediaFormat_getString(AMediaFormat*, const char *name, const char **out);