mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-05 07:40:01 +00:00
Don't complain if the preface has no primary package set
This commit is contained in:
parent
afbec8ab9b
commit
dc42074fa9
1 changed files with 8 additions and 6 deletions
|
@ -456,12 +456,14 @@ mxf_metadata_preface_resolve (MXFMetadataBase * m, GHashTable * metadata)
|
|||
MXFMetadataBase *current = NULL;
|
||||
guint i;
|
||||
|
||||
current = g_hash_table_lookup (metadata, &self->primary_package_uid);
|
||||
if (!current || !MXF_IS_METADATA_GENERIC_PACKAGE (current)) {
|
||||
GST_ERROR ("Primary package not found");
|
||||
} else {
|
||||
if (mxf_metadata_base_resolve (current, metadata)) {
|
||||
self->primary_package = MXF_METADATA_GENERIC_PACKAGE (current);
|
||||
if (!mxf_ul_is_zero (&self->primary_package_uid)) {
|
||||
current = g_hash_table_lookup (metadata, &self->primary_package_uid);
|
||||
if (!current || !MXF_IS_METADATA_GENERIC_PACKAGE (current)) {
|
||||
GST_ERROR ("Primary package not found");
|
||||
} else {
|
||||
if (mxf_metadata_base_resolve (current, metadata)) {
|
||||
self->primary_package = MXF_METADATA_GENERIC_PACKAGE (current);
|
||||
}
|
||||
}
|
||||
}
|
||||
current = NULL;
|
||||
|
|
Loading…
Reference in a new issue