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 801ccc0d0f2bb11f05769591748e292f764d53f6..af534980a47a42d8d21008fc9602f9edcb8ae810 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")) {