summaryrefslogtreecommitdiff
path: root/src/lib/player.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-02-12 00:13:14 +0000
committerCarl Hetherington <cth@carlh.net>2016-02-12 00:13:14 +0000
commit80400212e939dc2f3b987cb6df57709929aa5178 (patch)
treeacffc7b335b79b27261610986fcf5fd95f6437ab /src/lib/player.cc
parentdb3cd90dadf60df72ebbd95c59b32954f29b9c38 (diff)
Rename SubRip -> TextSubtitle.
Diffstat (limited to 'src/lib/player.cc')
-rw-r--r--src/lib/player.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc
index ecf37b576..fc1332573 100644
--- a/src/lib/player.cc
+++ b/src/lib/player.cc
@@ -27,8 +27,8 @@
#include "sndfile_decoder.h"
#include "sndfile_content.h"
#include "subtitle_content.h"
-#include "subrip_decoder.h"
-#include "subrip_content.h"
+#include "text_subtitle_decoder.h"
+#include "text_subtitle_content.h"
#include "dcp_content.h"
#include "job.h"
#include "image.h"
@@ -174,10 +174,10 @@ Player::setup_pieces ()
as simultaneous video content (like we do with audio).
*/
- /* SubRipContent */
- shared_ptr<const SubRipContent> rc = dynamic_pointer_cast<const SubRipContent> (i);
+ /* TextSubtitleContent */
+ shared_ptr<const TextSubtitleContent> rc = dynamic_pointer_cast<const TextSubtitleContent> (i);
if (rc) {
- decoder.reset (new SubRipDecoder (rc));
+ decoder.reset (new TextSubtitleDecoder (rc));
frc = FrameRateChange (rc->subtitle_video_frame_rate(), _film->video_frame_rate());
}
@@ -220,9 +220,9 @@ Player::playlist_content_changed (weak_ptr<Content> w, int property, bool freque
property == ContentProperty::PATH ||
property == VideoContentProperty::VIDEO_FRAME_TYPE ||
property == DCPContentProperty::CAN_BE_PLAYED ||
- property == SubRipContentProperty::SUBTITLE_COLOUR ||
- property == SubRipContentProperty::SUBTITLE_OUTLINE ||
- property == SubRipContentProperty::SUBTITLE_OUTLINE_COLOUR
+ property == TextSubtitleContentProperty::TEXT_SUBTITLE_COLOUR ||
+ property == TextSubtitleContentProperty::TEXT_SUBTITLE_OUTLINE ||
+ property == TextSubtitleContentProperty::TEXT_SUBTITLE_OUTLINE_COLOUR
) {
_have_valid_pieces = false;