mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
mxf: Don't use NULL GstStructures to prevent warnings
Currently serializing of DM Frameworks is not supported yet by DMS1 and will give us NULL.
This commit is contained in:
parent
3cfe16cc63
commit
b5e87b6517
1 changed files with 5 additions and 3 deletions
|
@ -2924,10 +2924,12 @@ mxf_metadata_dm_segment_to_structure (MXFMetadataBase * m)
|
||||||
GstStructure *s =
|
GstStructure *s =
|
||||||
mxf_metadata_base_to_structure (MXF_METADATA_BASE (self->dm_framework));
|
mxf_metadata_base_to_structure (MXF_METADATA_BASE (self->dm_framework));
|
||||||
|
|
||||||
gst_structure_id_set (ret, MXF_QUARK (DM_FRAMEWORK), GST_TYPE_STRUCTURE, s,
|
if (s) {
|
||||||
NULL);
|
gst_structure_id_set (ret, MXF_QUARK (DM_FRAMEWORK), GST_TYPE_STRUCTURE,
|
||||||
|
s, NULL);
|
||||||
gst_structure_free (s);
|
gst_structure_free (s);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (self->n_track_ids > 0) {
|
if (self->n_track_ids > 0) {
|
||||||
GValue arr = { 0, }
|
GValue arr = { 0, }
|
||||||
|
|
Loading…
Reference in a new issue