aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2009-03-01 14:55:21 +0000
committerAurelien Jacobs <aurel@gnuage.org>2009-03-01 14:55:21 +0000
commitf7554a99bc23312c30071c37ec8c4bbfacba3a87 (patch)
tree5ae100d5ae8d2e859b85deb790b0ee6746a85bde /ffplay.c
parenta5926d856b4e5dc83d92e213031261f9d947094f (diff)
downloadffmpeg-f7554a99bc23312c30071c37ec8c4bbfacba3a87.tar.gz
convert ffplay to new metadata API
Originally committed as revision 17684 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/ffplay.c b/ffplay.c
index c3af259328..18504c550a 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1894,22 +1894,9 @@ static void stream_component_close(VideoState *is, int stream_index)
static void dump_stream_info(const AVFormatContext *s)
{
- if (s->track != 0)
- fprintf(stderr, "Track: %d\n", s->track);
- if (s->title[0] != '\0')
- fprintf(stderr, "Title: %s\n", s->title);
- if (s->author[0] != '\0')
- fprintf(stderr, "Author: %s\n", s->author);
- if (s->copyright[0] != '\0')
- fprintf(stderr, "Copyright: %s\n", s->copyright);
- if (s->comment[0] != '\0')
- fprintf(stderr, "Comment: %s\n", s->comment);
- if (s->album[0] != '\0')
- fprintf(stderr, "Album: %s\n", s->album);
- if (s->year != 0)
- fprintf(stderr, "Year: %d\n", s->year);
- if (s->genre[0] != '\0')
- fprintf(stderr, "Genre: %s\n", s->genre);
+ AVMetadataTag *tag = NULL;
+ while ((tag=av_metadata_get(s->metadata,"",tag,AV_METADATA_IGNORE_SUFFIX)))
+ fprintf(stderr, "%s: %s\n", tag->key, tag->value);
}
/* since we have only one decoding thread, we can use a global