No-op; Fix GPL address and mention libdcp by name.
[libdcp.git] / src / reel_subtitle_asset.cc
1 /*
2     Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
3
4     This file is part of libdcp.
5
6     libdcp is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2 of the License, or
9     (at your option) any later version.
10
11     libdcp is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15
16     You should have received a copy of the GNU General Public License
17     along with libdcp.  If not, see <http://www.gnu.org/licenses/>.
18
19 */
20
21 /** @file  src/reel_subtitle_asset.cc
22  *  @brief ReelSubtitleAsset class.
23  */
24
25 #include "subtitle_asset.h"
26 #include "reel_subtitle_asset.h"
27
28 using std::string;
29 using boost::shared_ptr;
30 using namespace dcp;
31
32 ReelSubtitleAsset::ReelSubtitleAsset (boost::shared_ptr<SubtitleAsset> asset, Fraction edit_rate, int64_t intrinsic_duration, int64_t entry_point)
33         : ReelAsset (asset, edit_rate, intrinsic_duration, entry_point)
34 {
35
36 }
37
38 ReelSubtitleAsset::ReelSubtitleAsset (boost::shared_ptr<const cxml::Node> node)
39         : ReelAsset (node)
40 {
41         node->ignore_child ("Language");
42         node->done ();
43 }
44
45 string
46 ReelSubtitleAsset::cpl_node_name () const
47 {
48         return "MainSubtitle";
49 }