Correctly parse \c tags in SSA (with no specified colour) to return to PrimaryColour.
[libsub.git] / src / ssa_reader.h
index aba06cc9a6da6742c95dd0f80591647443516d05..45cc271382b74c4bff37de442ffab01a6e38a8f7 100644 (file)
@@ -41,8 +41,8 @@ public:
        SSAReader (FILE* f);
        SSAReader (std::string subs);
 
-       static std::list<RawSubtitle> parse_line (RawSubtitle base, std::string line, int play_res_x, int play_res_y);
-       static void parse_style (RawSubtitle& sub, std::string style, int play_res_x, int play_res_y);
+       static std::vector<RawSubtitle> parse_line(RawSubtitle base, std::string line, int play_res_x, int play_res_y, Colour primary_colour);
+       static void parse_style(RawSubtitle& sub, std::string style, int play_res_x, int play_res_y, Colour primary_colour);
 
 private:
        void read (boost::function<boost::optional<std::string> ()> get_line);