mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
audioparsers: use new base parse API to fix tag handling
https://bugzilla.gnome.org/show_bug.cgi?id=679768
This commit is contained in:
parent
a042a98159
commit
b1dfe209c2
6 changed files with 12 additions and 12 deletions
|
@ -1364,8 +1364,8 @@ gst_aac_parse_pre_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
|
|||
GST_TAG_AUDIO_CODEC, caps);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
gst_pad_push_event (GST_BASE_PARSE_SRC_PAD (aacparse),
|
||||
gst_event_new_tag (taglist));
|
||||
gst_base_parse_merge_tags (parse, taglist, GST_TAG_MERGE_REPLACE);
|
||||
gst_tag_list_unref (taglist);
|
||||
|
||||
/* also signals the end of first-frame processing */
|
||||
aacparse->sent_codec_tag = TRUE;
|
||||
|
|
|
@ -794,8 +794,8 @@ gst_ac3_parse_pre_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
|
|||
GST_TAG_AUDIO_CODEC, caps);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
gst_pad_push_event (GST_BASE_PARSE_SRC_PAD (ac3parse),
|
||||
gst_event_new_tag (taglist));
|
||||
gst_base_parse_merge_tags (parse, taglist, GST_TAG_MERGE_REPLACE);
|
||||
gst_tag_list_unref (taglist);
|
||||
|
||||
/* also signals the end of first-frame processing */
|
||||
ac3parse->sent_codec_tag = TRUE;
|
||||
|
|
|
@ -434,8 +434,8 @@ gst_amr_parse_pre_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
|
|||
GST_TAG_AUDIO_CODEC, caps);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
gst_pad_push_event (GST_BASE_PARSE_SRC_PAD (amrparse),
|
||||
gst_event_new_tag (taglist));
|
||||
gst_base_parse_merge_tags (parse, taglist, GST_TAG_MERGE_REPLACE);
|
||||
gst_tag_list_unref (taglist);
|
||||
|
||||
/* also signals the end of first-frame processing */
|
||||
amrparse->sent_codec_tag = TRUE;
|
||||
|
|
|
@ -573,8 +573,8 @@ gst_dca_parse_pre_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
|
|||
GST_TAG_AUDIO_CODEC, caps);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
gst_pad_push_event (GST_BASE_PARSE_SRC_PAD (dcaparse),
|
||||
gst_event_new_tag (taglist));
|
||||
gst_base_parse_merge_tags (parse, taglist, GST_TAG_MERGE_REPLACE);
|
||||
gst_tag_list_unref (taglist);
|
||||
|
||||
/* also signals the end of first-frame processing */
|
||||
dcaparse->sent_codec_tag = TRUE;
|
||||
|
|
|
@ -515,8 +515,8 @@ gst_sbc_parse_pre_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
|
|||
GST_TAG_AUDIO_CODEC, caps);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
gst_pad_push_event (GST_BASE_PARSE_SRC_PAD (sbcparse),
|
||||
gst_event_new_tag (taglist));
|
||||
gst_base_parse_merge_tags (parse, taglist, GST_TAG_MERGE_REPLACE);
|
||||
gst_tag_list_unref (taglist);
|
||||
|
||||
/* also signals the end of first-frame processing */
|
||||
sbcparse->sent_codec_tag = TRUE;
|
||||
|
|
|
@ -687,8 +687,8 @@ gst_wavpack_parse_pre_push_frame (GstBaseParse * parse,
|
|||
GST_TAG_AUDIO_CODEC, caps);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
gst_pad_push_event (GST_BASE_PARSE_SRC_PAD (wavpackparse),
|
||||
gst_event_new_tag (taglist));
|
||||
gst_base_parse_merge_tags (parse, taglist, GST_TAG_MERGE_REPLACE);
|
||||
gst_tag_list_unref (taglist);
|
||||
|
||||
/* also signals the end of first-frame processing */
|
||||
wavpackparse->sent_codec_tag = TRUE;
|
||||
|
|
Loading…
Reference in a new issue