Merge master; fix crash on new film.
[dcpomatic.git] / src / lib / video_source.cc
index 1c4d6466cbd5c159bbcdd81de23745821b700080..2de4db68d75657a55a2a05f49a0a86914781f908 100644 (file)
@@ -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) {
@@ -41,3 +41,17 @@ VideoSource::connect_video (shared_ptr<VideoSink> s)
        */
        Video.connect (bind (process_video_proxy, boost::weak_ptr<VideoSink> (s), _1, _2, _3));
 }
+
+void
+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));
+}
+
+