diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-01-27 14:23:03 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-01-31 11:02:24 +0100 |
commit | dc42074fa927207273b74c1d0ec327bb27f46086 (patch) | |
tree | d9d3de9d6910e3c7b68707a16753c94a78e67e3a /gst | |
parent | afbec8ab9bc8b8b477ae0f1c948c8df3da4e1ea0 (diff) | |
download | gst-plugins-bad-dc42074fa927207273b74c1d0ec327bb27f46086.tar.gz gst-plugins-bad-dc42074fa927207273b74c1d0ec327bb27f46086.tar.bz2 gst-plugins-bad-dc42074fa927207273b74c1d0ec327bb27f46086.zip |
Don't complain if the preface has no primary package set
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; |