mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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.
This commit is contained in:
parent
f845208d79
commit
fd3854c3e3
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue