projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean up after previous commit.
[dcpomatic.git]
/
src
/
lib
/
ffmpeg_content.cc
diff --git
a/src/lib/ffmpeg_content.cc
b/src/lib/ffmpeg_content.cc
index e18977944648fc1faff37e83987d8018a63fe473..dd4ed7063f91199c6232dc4d3f684059c1c11312 100644
(file)
--- a/
src/lib/ffmpeg_content.cc
+++ b/
src/lib/ffmpeg_content.cc
@@
-32,7
+32,7
@@
#include "log.h"
#include "exceptions.h"
#include "frame_rate_change.h"
#include "log.h"
#include "exceptions.h"
#include "frame_rate_change.h"
-#include "
text
_content.h"
+#include "
caption
_content.h"
#include <dcp/raw_convert.h>
#include <libcxml/cxml.h>
extern "C" {
#include <dcp/raw_convert.h>
#include <libcxml/cxml.h>
extern "C" {
@@
-85,7
+85,7
@@
FFmpegContent::FFmpegContent (shared_ptr<const Film> film, cxml::ConstNodePtr no
{
video = VideoContent::from_xml (this, node, version);
audio = AudioContent::from_xml (this, node, version);
{
video = VideoContent::from_xml (this, node, version);
audio = AudioContent::from_xml (this, node, version);
-
subtitle = Text
Content::from_xml (this, node, version);
+
caption = Caption
Content::from_xml (this, node, version);
list<cxml::NodePtr> c = node->node_children ("SubtitleStream");
for (list<cxml::NodePtr>::const_iterator i = c.begin(); i != c.end(); ++i) {
list<cxml::NodePtr> c = node->node_children ("SubtitleStream");
for (list<cxml::NodePtr>::const_iterator i = c.begin(); i != c.end(); ++i) {
@@
-135,12
+135,12
@@
FFmpegContent::FFmpegContent (shared_ptr<const Film> film, vector<shared_ptr<Con
bool need_video = false;
bool need_audio = false;
bool need_video = false;
bool need_audio = false;
- bool need_
subtitle
= false;
+ bool need_
caption
= false;
if (i != c.end ()) {
need_video = static_cast<bool> ((*i)->video);
need_audio = static_cast<bool> ((*i)->audio);
if (i != c.end ()) {
need_video = static_cast<bool> ((*i)->video);
need_audio = static_cast<bool> ((*i)->audio);
- need_
subtitle = static_cast<bool> ((*i)->subtitle
);
+ need_
caption = static_cast<bool> ((*i)->caption
);
}
while (i != c.end ()) {
}
while (i != c.end ()) {
@@
-150,8
+150,8
@@
FFmpegContent::FFmpegContent (shared_ptr<const Film> film, vector<shared_ptr<Con
if (need_audio != static_cast<bool> ((*i)->audio)) {
throw JoinError (_("Content to be joined must all have or not have audio"));
}
if (need_audio != static_cast<bool> ((*i)->audio)) {
throw JoinError (_("Content to be joined must all have or not have audio"));
}
- if (need_
subtitle != static_cast<bool> ((*i)->subtitle
)) {
- throw JoinError (_("Content to be joined must all have or not have
subtitle
s"));
+ if (need_
caption != static_cast<bool> ((*i)->caption
)) {
+ throw JoinError (_("Content to be joined must all have or not have
caption
s"));
}
++i;
}
}
++i;
}
@@
-162,8
+162,8
@@
FFmpegContent::FFmpegContent (shared_ptr<const Film> film, vector<shared_ptr<Con
if (need_audio) {
audio.reset (new AudioContent (this, c));
}
if (need_audio) {
audio.reset (new AudioContent (this, c));
}
- if (need_
subtitle
) {
-
subtitle.reset (new Text
Content (this, c));
+ if (need_
caption
) {
+
caption.reset (new Caption
Content (this, c));
}
shared_ptr<FFmpegContent> ref = dynamic_pointer_cast<FFmpegContent> (c[0]);
}
shared_ptr<FFmpegContent> ref = dynamic_pointer_cast<FFmpegContent> (c[0]);
@@
-171,7
+171,7
@@
FFmpegContent::FFmpegContent (shared_ptr<const Film> film, vector<shared_ptr<Con
for (size_t i = 0; i < c.size(); ++i) {
shared_ptr<FFmpegContent> fc = dynamic_pointer_cast<FFmpegContent> (c[i]);
for (size_t i = 0; i < c.size(); ++i) {
shared_ptr<FFmpegContent> fc = dynamic_pointer_cast<FFmpegContent> (c[i]);
- if (fc->
subtitle && fc->subtitle
->use() && *(fc->_subtitle_stream.get()) != *(ref->_subtitle_stream.get())) {
+ if (fc->
caption && fc->caption
->use() && *(fc->_subtitle_stream.get()) != *(ref->_subtitle_stream.get())) {
throw JoinError (_("Content to be joined must use the same subtitle stream."));
}
}
throw JoinError (_("Content to be joined must use the same subtitle stream."));
}
}
@@
-209,8
+209,8
@@
FFmpegContent::as_xml (xmlpp::Node* node, bool with_paths) const
}
}
}
}
- if (
subtitle
) {
-
subtitle
->as_xml (node);
+ if (
caption
) {
+
caption
->as_xml (node);
}
boost::mutex::scoped_lock lm (_mutex);
}
boost::mutex::scoped_lock lm (_mutex);
@@
-303,7
+303,7
@@
FFmpegContent::examine (shared_ptr<Job> job)
_subtitle_streams = examiner->subtitle_streams ();
if (!_subtitle_streams.empty ()) {
_subtitle_streams = examiner->subtitle_streams ();
if (!_subtitle_streams.empty ()) {
-
subtitle.reset (new Text
Content (this));
+
caption.reset (new Caption
Content (this));
_subtitle_stream = _subtitle_streams.front ();
}
_subtitle_stream = _subtitle_streams.front ();
}
@@
-426,8
+426,8
@@
FFmpegContent::identifier () const
s += "_" + video->identifier();
}
s += "_" + video->identifier();
}
- if (
subtitle && subtitle->use() && subtitle
->burn()) {
- s += "_" +
subtitle
->identifier();
+ if (
caption && caption->use() && caption
->burn()) {
+ s += "_" +
caption
->identifier();
}
boost::mutex::scoped_lock lm (_mutex);
}
boost::mutex::scoped_lock lm (_mutex);