From: Sebastian Dröge Date: Sun, 8 Feb 2009 20:31:40 +0000 (+0100) Subject: mxfdemux: Resolve source package before accessing it's members X-Git-Tag: 1.19.3~507^2~19567 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=33baa707a28fc0559670f05a5181733c6a6d8482;p=platform%2Fupstream%2Fgstreamer.git mxfdemux: Resolve source package before accessing it's members --- diff --git a/gst/mxf/mxfmetadata.c b/gst/mxf/mxfmetadata.c index 285a9ac..1c9a169 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;