mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
flacenc: Don't store image tags inside the vorbiscomments and the flac metadata
Instead only store them inside the flac metadata. There's no point in storing them twice and the flac metadata is still the official way to store image tags inside flac.
This commit is contained in:
parent
9648747ce9
commit
16f82e46f5
1 changed files with 6 additions and 0 deletions
|
@ -453,6 +453,12 @@ add_one_tag (const GstTagList * list, const gchar * tag, gpointer user_data)
|
|||
GList *it;
|
||||
GstFlacEnc *flacenc = GST_FLAC_ENC (user_data);
|
||||
|
||||
/* IMAGE and PREVIEW_IMAGE tags are already written
|
||||
* differently, no need to store them inside the
|
||||
* vorbiscomments too */
|
||||
if (strcmp (tag, GST_TAG_IMAGE) == 0 || strcmp (tag, GST_TAG_PREVIEW_IMAGE))
|
||||
return;
|
||||
|
||||
comments = gst_tag_to_vorbis_comments (list, tag);
|
||||
for (it = comments; it != NULL; it = it->next) {
|
||||
FLAC__StreamMetadata_VorbisComment_Entry commment_entry;
|
||||
|
|
Loading…
Reference in a new issue