audioparsers: use new base parse API to fix tag handling

https://bugzilla.gnome.org/show_bug.cgi?id=679768
This commit is contained in:
Olivier Crête 2015-03-17 17:50:37 -04:00 committed by Tim-Philipp Müller
parent a042a98159
commit b1dfe209c2
6 changed files with 12 additions and 12 deletions

View file

@ -1364,8 +1364,8 @@ gst_aac_parse_pre_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
GST_TAG_AUDIO_CODEC, caps); GST_TAG_AUDIO_CODEC, caps);
gst_caps_unref (caps); gst_caps_unref (caps);
gst_pad_push_event (GST_BASE_PARSE_SRC_PAD (aacparse), gst_base_parse_merge_tags (parse, taglist, GST_TAG_MERGE_REPLACE);
gst_event_new_tag (taglist)); gst_tag_list_unref (taglist);
/* also signals the end of first-frame processing */ /* also signals the end of first-frame processing */
aacparse->sent_codec_tag = TRUE; aacparse->sent_codec_tag = TRUE;

View file

@ -794,8 +794,8 @@ gst_ac3_parse_pre_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
GST_TAG_AUDIO_CODEC, caps); GST_TAG_AUDIO_CODEC, caps);
gst_caps_unref (caps); gst_caps_unref (caps);
gst_pad_push_event (GST_BASE_PARSE_SRC_PAD (ac3parse), gst_base_parse_merge_tags (parse, taglist, GST_TAG_MERGE_REPLACE);
gst_event_new_tag (taglist)); gst_tag_list_unref (taglist);
/* also signals the end of first-frame processing */ /* also signals the end of first-frame processing */
ac3parse->sent_codec_tag = TRUE; ac3parse->sent_codec_tag = TRUE;

View file

@ -434,8 +434,8 @@ gst_amr_parse_pre_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
GST_TAG_AUDIO_CODEC, caps); GST_TAG_AUDIO_CODEC, caps);
gst_caps_unref (caps); gst_caps_unref (caps);
gst_pad_push_event (GST_BASE_PARSE_SRC_PAD (amrparse), gst_base_parse_merge_tags (parse, taglist, GST_TAG_MERGE_REPLACE);
gst_event_new_tag (taglist)); gst_tag_list_unref (taglist);
/* also signals the end of first-frame processing */ /* also signals the end of first-frame processing */
amrparse->sent_codec_tag = TRUE; amrparse->sent_codec_tag = TRUE;

View file

@ -573,8 +573,8 @@ gst_dca_parse_pre_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
GST_TAG_AUDIO_CODEC, caps); GST_TAG_AUDIO_CODEC, caps);
gst_caps_unref (caps); gst_caps_unref (caps);
gst_pad_push_event (GST_BASE_PARSE_SRC_PAD (dcaparse), gst_base_parse_merge_tags (parse, taglist, GST_TAG_MERGE_REPLACE);
gst_event_new_tag (taglist)); gst_tag_list_unref (taglist);
/* also signals the end of first-frame processing */ /* also signals the end of first-frame processing */
dcaparse->sent_codec_tag = TRUE; dcaparse->sent_codec_tag = TRUE;

View file

@ -515,8 +515,8 @@ gst_sbc_parse_pre_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
GST_TAG_AUDIO_CODEC, caps); GST_TAG_AUDIO_CODEC, caps);
gst_caps_unref (caps); gst_caps_unref (caps);
gst_pad_push_event (GST_BASE_PARSE_SRC_PAD (sbcparse), gst_base_parse_merge_tags (parse, taglist, GST_TAG_MERGE_REPLACE);
gst_event_new_tag (taglist)); gst_tag_list_unref (taglist);
/* also signals the end of first-frame processing */ /* also signals the end of first-frame processing */
sbcparse->sent_codec_tag = TRUE; sbcparse->sent_codec_tag = TRUE;

View file

@ -687,8 +687,8 @@ gst_wavpack_parse_pre_push_frame (GstBaseParse * parse,
GST_TAG_AUDIO_CODEC, caps); GST_TAG_AUDIO_CODEC, caps);
gst_caps_unref (caps); gst_caps_unref (caps);
gst_pad_push_event (GST_BASE_PARSE_SRC_PAD (wavpackparse), gst_base_parse_merge_tags (parse, taglist, GST_TAG_MERGE_REPLACE);
gst_event_new_tag (taglist)); gst_tag_list_unref (taglist);
/* also signals the end of first-frame processing */ /* also signals the end of first-frame processing */
wavpackparse->sent_codec_tag = TRUE; wavpackparse->sent_codec_tag = TRUE;