diff options
author | Thibault Saunier <thibault.saunier@osg.samsung.com> | 2017-06-15 14:13:14 -0400 |
---|---|---|
committer | Thibault Saunier <thibault.saunier@osg.samsung.com> | 2017-06-15 14:18:20 -0400 |
commit | fd3854c3e36770c4674d55828ffb1167edfaccfd (patch) | |
tree | 670b5b6131e91eb3c31d528e7381540a6c3498e7 /gst/mxf | |
parent | f845208d7947b7cbc8de5eade485d454a2431666 (diff) |
mxfdemux: Do not try to serialize unresolved metadatas
When retrieving the `mxfdemux.structure` property, it leads to an
assertion as metadatas need to be resolved for the call to
mxf_metadata_base_to_structure to be valid.
Diffstat (limited to 'gst/mxf')
-rw-r--r-- | gst/mxf/mxfdemux.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/mxf/mxfdemux.c b/gst/mxf/mxfdemux.c index 5c176ac0e..b75852415 100644 --- a/gst/mxf/mxfdemux.c +++ b/gst/mxf/mxfdemux.c @@ -4387,7 +4387,9 @@ gst_mxf_demux_get_property (GObject * object, guint prop_id, GstStructure *s; g_rw_lock_reader_lock (&demux->metadata_lock); - if (demux->preface) + if (demux->preface && + MXF_METADATA_BASE (demux->preface)->resolved == + MXF_METADATA_BASE_RESOLVE_STATE_SUCCESS) s = mxf_metadata_base_to_structure (MXF_METADATA_BASE (demux->preface)); else s = NULL; |