Thinko in previous.
authorCarl Hetherington <cth@carlh.net>
Fri, 20 Jul 2018 21:12:37 +0000 (22:12 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 20 Jul 2018 21:12:37 +0000 (22:12 +0100)
src/lib/caption_content.cc

index 801ccc0..af53498 100644 (file)
@@ -90,7 +90,7 @@ CaptionContent::from_xml (Content* parent, cxml::ConstNodePtr node, int version)
                if (!node->optional_number_child<double>("SubtitleXOffset") && !node->optional_number_child<double>("SubtitleOffset")) {
                        return shared_ptr<CaptionContent> ();
                }
-               shared_ptr<CaptionContent> (new CaptionContent (parent, node, version));
+               return shared_ptr<CaptionContent> (new CaptionContent (parent, node, version));
        }
 
        if (!node->node_child("Caption")) {