Fix sequencing failure in some very specific circumstances.
[dcpomatic.git] / src / lib / player_video.cc
index d3f09947eeae77966c56f9a8ab4120ba47929882..8ff008b395a8b0ec92baf6c48ad6c81e934ec8d5 100644 (file)
@@ -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
+                       )
+               );
+}