flvdemux: Handle the encoder metadata the same as metadatacreator

And store it in our ENCODER tag.
This commit is contained in:
Sebastian Dröge 2019-01-09 17:52:28 +02:00 committed by Sebastian Dröge
parent c28a9d5d9c
commit ab8100e664

View file

@ -422,7 +422,8 @@ gst_flv_demux_parse_metadata_item (GstFlvDemux * demux, GstByteReader * reader,
} else if (!strcmp (tag_name, "title")) { } else if (!strcmp (tag_name, "title")) {
gst_tag_list_add (demux->taglist, GST_TAG_MERGE_REPLACE, gst_tag_list_add (demux->taglist, GST_TAG_MERGE_REPLACE,
GST_TAG_TITLE, s, NULL); GST_TAG_TITLE, s, NULL);
} else if (!strcmp (tag_name, "metadatacreator")) { } else if (!strcmp (tag_name, "metadatacreator")
|| !strcmp (tag_name, "encoder")) {
gst_tag_list_add (demux->taglist, GST_TAG_MERGE_REPLACE, gst_tag_list_add (demux->taglist, GST_TAG_MERGE_REPLACE,
GST_TAG_ENCODER, s, NULL); GST_TAG_ENCODER, s, NULL);
} else { } else {