Make the _film member of Player a weak_ptr.
[dcpomatic.git] / src / lib / player.h
index 0d288824e8d28eaf359ec9396fc54a362a01e17f..6e83da103df66d8444171025230c8912dc59e702 100644 (file)
@@ -173,7 +173,7 @@ private:
        */
        mutable boost::mutex _mutex;
 
-       std::shared_ptr<const Film> const _film;
+       std::weak_ptr<const Film> const _film;
        /** Playlist, or 0 if we are using the one from the _film */
        std::shared_ptr<const Playlist> const _playlist;