ext/: Add codec-name metadata.

Original commit message from CVS:
* ext/flac/gstflacdec.c: (gst_flacdec_update_metadata):
* ext/speex/gstspeexdec.c: (speex_dec_chain):
* ext/theora/theoradec.c: (theora_dec_chain):
* ext/vorbis/vorbisdec.c: (vorbis_dec_chain):
Add codec-name metadata.
This commit is contained in:
Ronald S. Bultje 2004-10-25 16:10:58 +00:00
parent 8c1e1212d6
commit 61ab6a6089
3 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,11 @@
2004-10-25 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/flac/gstflacdec.c: (gst_flacdec_update_metadata):
* ext/speex/gstspeexdec.c: (speex_dec_chain):
* ext/theora/theoradec.c: (theora_dec_chain):
* ext/vorbis/vorbisdec.c: (vorbis_dec_chain):
Add codec-name metadata.
2004-10-25 Takao Fujiwara <Takao.Fujiwara@Sun.COM>
Reviewd by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>

View file

@ -594,7 +594,8 @@ theora_dec_chain (GstPad * pad, GstData * data)
}
gst_tag_list_add (list, GST_TAG_MERGE_REPLACE,
GST_TAG_ENCODER_VERSION, dec->info.version_major,
GST_TAG_NOMINAL_BITRATE, dec->info.target_bitrate, NULL);
GST_TAG_NOMINAL_BITRATE, dec->info.target_bitrate,
GST_TAG_VIDEO_CODEC, "Theora", NULL);
gst_element_found_tags_for_pad (GST_ELEMENT (dec), dec->srcpad, 0, list);
dec->packetno++;

View file

@ -416,7 +416,8 @@ vorbis_dec_chain (GstPad * pad, GstData * data)
g_free (encoder);
}
gst_tag_list_add (list, GST_TAG_MERGE_REPLACE,
GST_TAG_ENCODER_VERSION, vd->vi.version, NULL);
GST_TAG_ENCODER_VERSION, vd->vi.version,
GST_TAG_AUDIO_CODEC, "Vorbis", NULL);
if (vd->vi.bitrate_upper > 0)
gst_tag_list_add (list, GST_TAG_MERGE_REPLACE,
GST_TAG_MAXIMUM_BITRATE, (guint) vd->vi.bitrate_upper, NULL);