projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
428f2fa
)
mxfdemux: Do not try to serialize unresolved metadatas
author
Thibault Saunier
<thibault.saunier@osg.samsung.com>
Thu, 15 Jun 2017 18:13:14 +0000
(14:13 -0400)
committer
Sebastian Dröge
<sebastian@centricular.com>
Sat, 17 Jun 2017 07:52:03 +0000
(10:52 +0300)
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.
gst/mxf/mxfdemux.c
patch
|
blob
|
history
diff --git
a/gst/mxf/mxfdemux.c
b/gst/mxf/mxfdemux.c
index
5c176ac
..
b758524
100644
(file)
--- 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;