summaryrefslogtreecommitdiff
path: root/src/lib/combiner.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-04-24 01:02:25 +0100
committerCarl Hetherington <cth@carlh.net>2013-04-24 01:02:25 +0100
commit8dd9ea3086b4934f2719648ffa6333c0d106ff36 (patch)
tree15f334ab2d096d0a7f310c1427ff8a3107eae069 /src/lib/combiner.cc
parentbe1862fefb1378c78bcc4bd6334694797755ea47 (diff)
Some const correctness.
Diffstat (limited to 'src/lib/combiner.cc')
-rw-r--r--src/lib/combiner.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/combiner.cc b/src/lib/combiner.cc
index 0a9eaf6b6..250528aeb 100644
--- a/src/lib/combiner.cc
+++ b/src/lib/combiner.cc
@@ -33,9 +33,9 @@ Combiner::Combiner (shared_ptr<Log> log)
* @param image Frame image.
*/
void
-Combiner::process_video (shared_ptr<Image> image, bool, shared_ptr<Subtitle>, double)
+Combiner::process_video (shared_ptr<const Image> image, bool, shared_ptr<Subtitle>, double)
{
- _image = image;
+ _image = image->clone ();
}
/** Process video for the right half of the frame.
@@ -43,7 +43,7 @@ Combiner::process_video (shared_ptr<Image> image, bool, shared_ptr<Subtitle>, do
* @param sub Subtitle (which will be put onto the whole frame)
*/
void
-Combiner::process_video_b (shared_ptr<Image> image, bool, shared_ptr<Subtitle> sub, double t)
+Combiner::process_video_b (shared_ptr<const Image> image, bool, shared_ptr<Subtitle> sub, double t)
{
/* Copy the right half of this image into our _image */
/* XXX: this should probably be in the Image class */