diff options
Diffstat (limited to 'gst')
-rw-r--r-- | gst/mxf/mxfmetadata.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gst/mxf/mxfmetadata.c b/gst/mxf/mxfmetadata.c index cda051ba..59a0fec2 100644 --- a/gst/mxf/mxfmetadata.c +++ b/gst/mxf/mxfmetadata.c @@ -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; |