qtmux: Don't use bogus codec/format tags
https://bugzilla.gnome.org/show_bug.cgi?id=623365
This commit is contained in:
parent
d46275c37f
commit
e5ce188b1d
@ -979,9 +979,17 @@ gst_qt_mux_setup_metadata (GstQTMux * qtmux)
|
|||||||
GST_LOG_OBJECT (qtmux, "tags: %" GST_PTR_FORMAT, tags);
|
GST_LOG_OBJECT (qtmux, "tags: %" GST_PTR_FORMAT, tags);
|
||||||
|
|
||||||
if (tags && !gst_tag_list_is_empty (tags)) {
|
if (tags && !gst_tag_list_is_empty (tags)) {
|
||||||
|
GstTagList *copy = gst_tag_list_copy (tags);
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (qtmux, "Removing bogus tags");
|
||||||
|
gst_tag_list_remove_tag (copy, GST_TAG_VIDEO_CODEC);
|
||||||
|
gst_tag_list_remove_tag (copy, GST_TAG_AUDIO_CODEC);
|
||||||
|
gst_tag_list_remove_tag (copy, GST_TAG_CONTAINER_FORMAT);
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (qtmux, "Formatting tags");
|
GST_DEBUG_OBJECT (qtmux, "Formatting tags");
|
||||||
gst_qt_mux_add_metadata_tags (qtmux, tags);
|
gst_qt_mux_add_metadata_tags (qtmux, copy);
|
||||||
gst_qt_mux_add_xmp_tags (qtmux, tags);
|
gst_qt_mux_add_xmp_tags (qtmux, copy);
|
||||||
|
gst_tag_list_free (copy);
|
||||||
} else {
|
} else {
|
||||||
GST_DEBUG_OBJECT (qtmux, "No tags received");
|
GST_DEBUG_OBJECT (qtmux, "No tags received");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user