diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-02-08 21:31:40 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-02-08 21:31:40 +0100 |
commit | 33baa707a28fc0559670f05a5181733c6a6d8482 (patch) | |
tree | 2535bae32bd88416b7763788ce21ec81c6c97fe9 /gst | |
parent | 2b566be795ef223d7ef82650ab2bbfcffdc094a8 (diff) | |
download | gst-plugins-bad-33baa707a28fc0559670f05a5181733c6a6d8482.tar.gz gst-plugins-bad-33baa707a28fc0559670f05a5181733c6a6d8482.tar.bz2 gst-plugins-bad-33baa707a28fc0559670f05a5181733c6a6d8482.zip |
mxfdemux: Resolve source package before accessing it's members
Diffstat (limited to 'gst')
-rw-r--r-- | gst/mxf/mxfmetadata.c | 7 |
1 files changed, 7 insertions, 0 deletions
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; |