From 33baa707a28fc0559670f05a5181733c6a6d8482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 8 Feb 2009 21:31:40 +0100 Subject: mxfdemux: Resolve source package before accessing it's members --- gst/mxf/mxfmetadata.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gst/mxf') diff --git a/gst/mxf/mxfmetadata.c b/gst/mxf/mxfmetadata.c index 285a9ac0..1c9a169d 100644 --- a/gst/mxf/mxfmetadata.c +++ b/gst/mxf/mxfmetadata.c @@ -1150,6 +1150,13 @@ mxf_metadata_material_package_resolve (MXFMetadataBase * m, break; } + if (!mxf_metadata_base_resolve (MXF_METADATA_BASE (sc->source_package), + metadata)) { + GST_ERROR ("Couldn't resolve source package for track %u", i); + track = NULL; + break; + } + sc->source_package->top_level = TRUE; for (k = 0; k < sc->source_package->parent.n_tracks; k++) { MXFMetadataTimelineTrack *tmp; -- cgit v1.2.1