Fix crashes when static linking due to tricky lifetime
[libdcp.git] / src / sound_asset.cc
index 15626b9ae22a62a7a3dfa2d10ba82828a452de35..6752d9b1ac180a43bca43c52a93da2fc2f929505 100644 (file)
@@ -57,6 +57,7 @@ using boost::shared_ptr;
 using boost::dynamic_pointer_cast;
 using namespace dcp;
 
+
 SoundAsset::SoundAsset (boost::filesystem::path file)
        : Asset (file)
        /* XXX: this is a fallback language, which will be used if we can't find the RFC5646SpokenLanguage
@@ -89,7 +90,7 @@ SoundAsset::SoundAsset (boost::filesystem::path file)
 
        ASDCP::MXF::SoundfieldGroupLabelSubDescriptor* soundfield;
        ASDCP::Result_t rr = reader.OP1aHeader().GetMDObjectByType(
-               ASDCP::DefaultSMPTEDict().ul(ASDCP::MDD_SoundfieldGroupLabelSubDescriptor),
+               asdcp_smpte_dict->ul(ASDCP::MDD_SoundfieldGroupLabelSubDescriptor),
                reinterpret_cast<ASDCP::MXF::InterchangeObject**>(&soundfield)
                );