summaryrefslogtreecommitdiff
path: root/src/lib/video_source.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-04-26 23:41:02 +0100
committerCarl Hetherington <cth@carlh.net>2013-04-26 23:41:02 +0100
commitf861018389acd9d277fe34d7621182b9b54f977f (patch)
tree499bae7640ce99a13c31ea9c870d426084480aec /src/lib/video_source.cc
parentf09c6b53f155de601900afa90045059b20310c0d (diff)
parent86011ad6b4ea0004a51c59b0563cf89c0947546d (diff)
Merge master; fix crash on new film.
Diffstat (limited to 'src/lib/video_source.cc')
-rw-r--r--src/lib/video_source.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/video_source.cc b/src/lib/video_source.cc
index ccb76f020..2de4db68d 100644
--- a/src/lib/video_source.cc
+++ b/src/lib/video_source.cc
@@ -25,7 +25,7 @@ using boost::weak_ptr;
using boost::bind;
static void
-process_video_proxy (weak_ptr<VideoSink> sink, shared_ptr<Image> i, bool same, shared_ptr<Subtitle> s)
+process_video_proxy (weak_ptr<VideoSink> sink, shared_ptr<const Image> i, bool same, shared_ptr<Subtitle> s)
{
shared_ptr<VideoSink> p = sink.lock ();
if (p) {
@@ -47,3 +47,11 @@ TimedVideoSource::connect_video (shared_ptr<TimedVideoSink> s)
{
Video.connect (bind (&TimedVideoSink::process_video, s, _1, _2, _3, _4));
}
+
+void
+TimedVideoSource::connect_video (shared_ptr<VideoSink> s)
+{
+ Video.connect (bind (&VideoSink::process_video, s, _1, _2, _3));
+}
+
+