Fix subtitle colouring (#152).
[dcpomatic.git] / src / lib / sndfile_decoder.cc
index 09ccf4fbc1fd9ba5d2bcf3eac9d3aa2ae135b45b..e10f4f568430d08dd86d1d5db38d2116606fbbbb 100644 (file)
@@ -40,7 +40,7 @@ SndfileDecoder::SndfileDecoder (shared_ptr<const Film> f, shared_ptr<const Sndfi
        , _deinterleave_buffer (0)
 {
        _info.format = 0;
-       _sndfile = sf_open (_sndfile_content->path().string().c_str(), SFM_READ, &_info);
+       _sndfile = sf_open (_sndfile_content->path(0).string().c_str(), SFM_READ, &_info);
        if (!_sndfile) {
                throw DecodeError (_("could not open audio file for reading"));
        }