diff --git a/ext/ogg/gstoggstream.c b/ext/ogg/gstoggstream.c index 4ace481903..d477397654 100644 --- a/ext/ogg/gstoggstream.c +++ b/ext/ogg/gstoggstream.c @@ -811,6 +811,9 @@ extract_tags_vp8 (GstOggStream * pad, ogg_packet * packet) tag_list_from_vorbiscomment_packet (packet, (const guint8 *) "OVP80\2 ", 7, &pad->taglist); + if (!pad->taglist) + pad->taglist = gst_tag_list_new_empty (); + gst_tag_list_add (pad->taglist, GST_TAG_MERGE_REPLACE, GST_TAG_VIDEO_CODEC, "VP8", NULL); } @@ -1142,6 +1145,9 @@ extract_tags_flac (GstOggStream * pad, ogg_packet * packet) tag_list_from_vorbiscomment_packet (packet, packet->packet, 4, &pad->taglist); + if (!pad->taglist) + pad->taglist = gst_tag_list_new_empty (); + gst_tag_list_add (pad->taglist, GST_TAG_MERGE_REPLACE, GST_TAG_AUDIO_CODEC, "FLAC", NULL); } @@ -2102,6 +2108,9 @@ extract_tags_opus (GstOggStream * pad, ogg_packet * packet) tag_list_from_vorbiscomment_packet (packet, (const guint8 *) "OpusTags", 8, &pad->taglist); + if (!pad->taglist) + pad->taglist = gst_tag_list_new_empty (); + gst_tag_list_add (pad->taglist, GST_TAG_MERGE_REPLACE, GST_TAG_AUDIO_CODEC, "Opus", NULL); }