summaryrefslogtreecommitdiff
path: root/src/lib/subrip_content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-07-10 22:41:48 +0100
committerCarl Hetherington <cth@carlh.net>2014-07-10 22:41:48 +0100
commita8af9a0b57b853b8a8cd8fa35adb3fc967d59ee7 (patch)
tree9493b374153de99bc220138361420c5abe85b16e /src/lib/subrip_content.h
parent8d58a7c5f4320ad5c111e336c45e44d6b51ab509 (diff)
Add has_subtitles method to SubtitleContent; tidy up timeline display a bit.
Diffstat (limited to 'src/lib/subrip_content.h')
-rw-r--r--src/lib/subrip_content.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/subrip_content.h b/src/lib/subrip_content.h
index 7da6e71f7..d2dcdee00 100644
--- a/src/lib/subrip_content.h
+++ b/src/lib/subrip_content.h
@@ -29,6 +29,7 @@ public:
return boost::dynamic_pointer_cast<SubRipContent> (Content::shared_from_this ());
}
+ /* Content */
void examine (boost::shared_ptr<Job>);
std::string summary () const;
std::string technical_summary () const;
@@ -36,6 +37,11 @@ public:
void as_xml (xmlpp::Node *) const;
DCPTime full_length () const;
+ /* SubtitleContent */
+ bool has_subtitles () const {
+ return true;
+ }
+
private:
DCPTime _length;
};