X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fsubtitle.h;h=ed63983ff7e225ebf1864568cfe545e1e2b12f42;hb=86d0fa1b9521abbffd63a82dd39e887f68812a6f;hp=32f7457a650bc688408d6a9d570063a8ac038f00;hpb=f98e44934d73ed80a58c1b036586c9570cde3758;p=libdcp.git diff --git a/src/subtitle.h b/src/subtitle.h index 32f7457a..ed63983f 100644 --- a/src/subtitle.h +++ b/src/subtitle.h @@ -31,6 +31,9 @@ files in the program, then also delete it here. */ +#ifndef LIBDCP_SUBTITLE_H +#define LIBDCP_SUBTITLE_H + /** @file src/subtitle.h * @brief Subtitle class. */ @@ -53,6 +56,8 @@ public: Time fade_down_time ); + virtual ~Subtitle () {} + Time in () const { return _in; } @@ -61,7 +66,6 @@ public: return _out; } - float h_position () const { return _h_position; } @@ -109,11 +113,11 @@ public: _v_position = p; } - void set_fade_up_time (dcp::Time t) { + void set_fade_up_time (Time t) { _fade_up_time = t; } - void set_fade_down_time (dcp::Time t) { + void set_fade_down_time (Time t) { _fade_down_time = t; } @@ -136,3 +140,5 @@ protected: }; } + +#endif