Credit Andrew bitstream filter render example + minor
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / pluginvclient.C
index 4ce953f7d7c3fe1ef5c75be651b555710ce94fa8..c2162febbdb5bb0c92384b51b57beed21f84343e 100644 (file)
@@ -2,6 +2,7 @@
 /*
  * CINELERRA
  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
+ * Copyright (C) 2003-2016 Cinelerra CV contributors
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -323,3 +324,16 @@ int PluginVClient::find_font_by_char(FT_ULong char_code, char *path_new, const F
 {
        return BC_Resources::find_font_by_char(char_code, path_new, oldface);
 }
+
+int64_t PluginVClient::get_startproject()
+{
+       int64_t pos = server->get_startproject();
+       return  pos >= 0 ? pos : 0;
+}
+
+int64_t PluginVClient::get_endproject()
+{
+       int64_t pos = server->get_endproject();
+       return  pos >= 0 ? pos : get_edl()->get_video_frames();
+}
+