diff metadata_compat.c @ 5982:f74198942337 libavformat

Mark av_metadata_set() as deprecated, and use av_metadata_set2() in its place. av_metadata_set() is going to be dropped at the next major bump.
author stefano
date Sun, 25 Apr 2010 14:27:42 +0000
parents 27fd77f20a89
children 8515b7b4fe87
line wrap: on
line diff
--- a/metadata_compat.c	Thu Apr 22 20:34:30 2010 +0000
+++ b/metadata_compat.c	Sun Apr 25 14:27:42 2010 +0000
@@ -109,7 +109,7 @@
 
 #define FILL_METADATA(s, key, value) {                                        \
     if (value && *value && !av_metadata_get(s->metadata, #key, NULL, 0))      \
-        av_metadata_set(&s->metadata, #key, value);                           \
+        av_metadata_set2(&s->metadata, #key, value, 0);                       \
     }
 #define FILL_METADATA_STR(s, key)  FILL_METADATA(s, key, s->key)
 #define FILL_METADATA_INT(s, key) {                                           \