mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
audioencoder: remove more tags from upstream tag events such as bitrate tags
We want to remove all codec specific tags.
This commit is contained in:
parent
ceea972b42
commit
e4e2e3c7b0
1 changed files with 11 additions and 0 deletions
|
@ -1280,8 +1280,19 @@ gst_audio_encoder_sink_eventfunc (GstAudioEncoder * enc, GstEvent * event)
|
|||
gst_event_parse_tag (event, &tags);
|
||||
tags = gst_tag_list_copy (tags);
|
||||
gst_event_unref (event);
|
||||
|
||||
/* FIXME: make generic based on GST_TAG_FLAG_ENCODED */
|
||||
gst_tag_list_remove_tag (tags, GST_TAG_CODEC);
|
||||
gst_tag_list_remove_tag (tags, GST_TAG_AUDIO_CODEC);
|
||||
gst_tag_list_remove_tag (tags, GST_TAG_VIDEO_CODEC);
|
||||
gst_tag_list_remove_tag (tags, GST_TAG_SUBTITLE_CODEC);
|
||||
gst_tag_list_remove_tag (tags, GST_TAG_CONTAINER_FORMAT);
|
||||
gst_tag_list_remove_tag (tags, GST_TAG_BITRATE);
|
||||
gst_tag_list_remove_tag (tags, GST_TAG_NOMINAL_BITRATE);
|
||||
gst_tag_list_remove_tag (tags, GST_TAG_MAXIMUM_BITRATE);
|
||||
gst_tag_list_remove_tag (tags, GST_TAG_MINIMUM_BITRATE);
|
||||
gst_tag_list_remove_tag (tags, GST_TAG_ENCODER);
|
||||
gst_tag_list_remove_tag (tags, GST_TAG_ENCODER_VERSION);
|
||||
event = gst_event_new_tag (tags);
|
||||
|
||||
GST_AUDIO_ENCODER_STREAM_LOCK (enc);
|
||||
|
|
Loading…
Reference in a new issue