diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-26 19:33:12 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-26 19:33:12 +0100 |
| commit | 175bd1d7e87354354e453458d3e299ef8f235b4f (patch) | |
| tree | 218555396ad5b0520abea34be37cc98ac9065a92 /src | |
| parent | c383f1bf2c14b7c7cfbf07399a4d90c99fc31c4c (diff) | |
Make sure use of subs is reflected in the video identifier.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/playlist.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/playlist.cc b/src/lib/playlist.cc index c5e026699..a0afae0ad 100644 --- a/src/lib/playlist.cc +++ b/src/lib/playlist.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2013 Carl Hetherington <cth@carlh.net> + Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -113,8 +113,11 @@ Playlist::video_identifier () const for (ContentList::const_iterator i = _content.begin(); i != _content.end(); ++i) { shared_ptr<const VideoContent> vc = dynamic_pointer_cast<const VideoContent> (*i); + shared_ptr<const SubtitleContent> sc = dynamic_pointer_cast<const SubtitleContent> (*i); if (vc) { t += vc->identifier (); + } else if (sc && sc->burn_subtitles ()) { + t += sc->identifier (); } } |
