summaryrefslogtreecommitdiff
path: root/src/lib/video_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-10 15:04:57 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-10 15:04:57 +0100
commit611f2241c6732c2c38d87e129e51cf9d8d7a08b8 (patch)
tree0c00420654d322856aecb5c6bbaeb483b3db7211 /src/lib/video_decoder.cc
parentade36b7e120838840d0f645763b8e0814eaf9ee4 (diff)
Basic return of subtitles.
Diffstat (limited to 'src/lib/video_decoder.cc')
-rw-r--r--src/lib/video_decoder.cc18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/lib/video_decoder.cc b/src/lib/video_decoder.cc
index f61e63d4d..0616cd437 100644
--- a/src/lib/video_decoder.cc
+++ b/src/lib/video_decoder.cc
@@ -42,21 +42,3 @@ VideoDecoder::video (shared_ptr<const Image> image, bool same, VideoContent::Fra
_video_position = frame + 1;
}
-#if 0
-
-/** Called by subclasses when a subtitle is ready.
- * s may be 0 to say that there is no current subtitle.
- * @param s New current subtitle, or 0.
- */
-void
-VideoDecoder::subtitle (shared_ptr<TimedSubtitle> s)
-{
- _timed_subtitle = s;
-
- if (_timed_subtitle) {
- Position const p = _timed_subtitle->subtitle()->position ();
- _timed_subtitle->subtitle()->set_position (Position (p.x - _video_content->crop().left, p.y - _video_content->crop().top));
- }
-}
-#endif
-