Make sure use of subs is reflected in the video identifier.
authorCarl Hetherington <cth@carlh.net>
Fri, 26 Jun 2015 18:33:12 +0000 (19:33 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 26 Jun 2015 18:33:12 +0000 (19:33 +0100)
src/lib/playlist.cc

index c5e026699b476d8864c64f65983f2fa3a7d4d43c..a0afae0adf70888315aadda255695d209dd50e6a 100644 (file)
@@ -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 ();
                }
        }