changeset 4583:8d5d5bcf76c9 libavformat

don't trigger metadata compatibility code when user app already set metadata using new API
author aurel
date Thu, 26 Feb 2009 13:00:13 +0000
parents 082712eaff7e
children da9b09dd57b8
files metadata_compat.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/metadata_compat.c	Thu Feb 26 08:45:59 2009 +0000
+++ b/metadata_compat.c	Thu Feb 26 13:00:13 2009 +0000
@@ -118,6 +118,9 @@
 {
     int i;
 
+    if (ctx->metadata && ctx->metadata->count > 0)
+        return;
+
     FILL_METADATA_STR(ctx, title);
     FILL_METADATA_STR(ctx, author);
     FILL_METADATA_STR(ctx, copyright);