summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_content.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-05-19 11:34:01 +0100
committerCarl Hetherington <cth@carlh.net>2014-05-19 11:34:01 +0100
commitbb0a36c3a6bea9cd1ebdde7b8a3a04765e317569 (patch)
treefe31842bc2fcb511f3f6daf02c78575b4eabaec5 /src/lib/ffmpeg_content.cc
parent308488324dbc4d8b709d3fb1dc9fee0479346c21 (diff)
Use cxml::ConstNodePtr.
Diffstat (limited to 'src/lib/ffmpeg_content.cc')
-rw-r--r--src/lib/ffmpeg_content.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/ffmpeg_content.cc b/src/lib/ffmpeg_content.cc
index a374bcf3e..d15f3fd26 100644
--- a/src/lib/ffmpeg_content.cc
+++ b/src/lib/ffmpeg_content.cc
@@ -59,7 +59,7 @@ FFmpegContent::FFmpegContent (shared_ptr<const Film> f, boost::filesystem::path
}
-FFmpegContent::FFmpegContent (shared_ptr<const Film> f, shared_ptr<const cxml::Node> node, int version, list<string>& notes)
+FFmpegContent::FFmpegContent (shared_ptr<const Film> f, cxml::ConstNodePtr node, int version, list<string>& notes)
: Content (f, node)
, VideoContent (f, node, version)
, AudioContent (f, node)
@@ -312,7 +312,7 @@ operator!= (FFmpegStream const & a, FFmpegStream const & b)
return a._id != b._id;
}
-FFmpegStream::FFmpegStream (shared_ptr<const cxml::Node> node)
+FFmpegStream::FFmpegStream (cxml::ConstNodePtr node)
: name (node->string_child ("Name"))
, _id (node->number_child<int> ("Id"))
{
@@ -326,7 +326,7 @@ FFmpegStream::as_xml (xmlpp::Node* root) const
root->add_child("Id")->add_child_text (raw_convert<string> (_id));
}
-FFmpegAudioStream::FFmpegAudioStream (shared_ptr<const cxml::Node> node, int version)
+FFmpegAudioStream::FFmpegAudioStream (cxml::ConstNodePtr node, int version)
: FFmpegStream (node)
, mapping (node->node_child ("Mapping"), version)
{
@@ -380,7 +380,7 @@ FFmpegStream::stream (AVFormatContext const * fc) const
* @param t String returned from to_string().
* @param v State file version.
*/
-FFmpegSubtitleStream::FFmpegSubtitleStream (shared_ptr<const cxml::Node> node)
+FFmpegSubtitleStream::FFmpegSubtitleStream (cxml::ConstNodePtr node)
: FFmpegStream (node)
{