diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-10-15 23:04:58 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-10-17 00:10:59 +0200 |
| commit | 053bf81d7ef24843cc2eea62e24c2296fed48950 (patch) | |
| tree | ead6f2542fa8dd414896f6cbc6b0c66a51f65be1 /src/lib/player.h | |
| parent | 7d8d78c183656191ff44c9464e06b843bfadc54d (diff) | |
Make the _film member of Player a weak_ptr.
Diffstat (limited to 'src/lib/player.h')
| -rw-r--r-- | src/lib/player.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/player.h b/src/lib/player.h index 0d288824e..6e83da103 100644 --- a/src/lib/player.h +++ b/src/lib/player.h @@ -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; |
