diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-01-31 00:25:06 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-01-31 00:25:06 +0000 |
| commit | a5d5ceb22c4f5dd3e6c5b7a8da76f724dd266a75 (patch) | |
| tree | 240afbdffe8cc59aec2b87fe323936dbc3749055 /src/lib/player_video.cc | |
| parent | ca7a6e8f81ccb3cba1160c5dff9dd3b5749c29ca (diff) | |
Fix sequencing failure in some very specific circumstances.
Diffstat (limited to 'src/lib/player_video.cc')
| -rw-r--r-- | src/lib/player_video.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/player_video.cc b/src/lib/player_video.cc index d3f09947e..8ff008b39 100644 --- a/src/lib/player_video.cc +++ b/src/lib/player_video.cc @@ -258,3 +258,21 @@ PlayerVideo::memory_used () const { return _in->memory_used(); } + +/** @return Shallow copy of this; _in and _subtitle are shared between the original and the copy */ +shared_ptr<PlayerVideo> +PlayerVideo::shallow_copy () const +{ + return shared_ptr<PlayerVideo>( + new PlayerVideo( + _in, + _crop, + _fade, + _inter_size, + _out_size, + _eyes, + _part, + _colour_conversion + ) + ); +} |
