summaryrefslogtreecommitdiffstats
path: root/gst/mxf
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-03-05 14:40:57 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-03-05 14:40:57 +0100
commitb5e87b651785c356b19313b3dfddfd4284f7c0e5 (patch)
tree36e1599f91c239de96f41382479ed626c86d0931 /gst/mxf
parent3cfe16cc63e89ba1d37c6f32034a142f5dac847b (diff)
downloadgst-plugins-bad-b5e87b651785c356b19313b3dfddfd4284f7c0e5.tar.gz
gst-plugins-bad-b5e87b651785c356b19313b3dfddfd4284f7c0e5.tar.bz2
gst-plugins-bad-b5e87b651785c356b19313b3dfddfd4284f7c0e5.zip
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.
Diffstat (limited to 'gst/mxf')
-rw-r--r--gst/mxf/mxfmetadata.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gst/mxf/mxfmetadata.c b/gst/mxf/mxfmetadata.c
index 687165c1..f13bcd03 100644
--- a/gst/mxf/mxfmetadata.c
+++ b/gst/mxf/mxfmetadata.c
@@ -2924,9 +2924,11 @@ mxf_metadata_dm_segment_to_structure (MXFMetadataBase * m)
GstStructure *s =
mxf_metadata_base_to_structure (MXF_METADATA_BASE (self->dm_framework));
- gst_structure_id_set (ret, MXF_QUARK (DM_FRAMEWORK), GST_TYPE_STRUCTURE, s,
- NULL);
- gst_structure_free (s);
+ if (s) {
+ gst_structure_id_set (ret, MXF_QUARK (DM_FRAMEWORK), GST_TYPE_STRUCTURE,
+ s, NULL);
+ gst_structure_free (s);
+ }
}
if (self->n_track_ids > 0) {