make viewer initially visible
[goodguy/history.git] / cinelerra-5.0 / plugins / reversevideo / reversevideo.C
index 9b7ba313e09d5b6e2fd5bc74b20dee4f0cadca78..72db6dcd010db25672c5c8abff42eb0b9810f419 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "bcdisplayinfo.h"
 #include "bchash.h"
+#include "bcsignals.h"
 #include "filexml.h"
 #include "guicast.h"
 #include "language.h"
@@ -174,7 +175,7 @@ ReverseVideo::~ReverseVideo()
        
 }
 
-const char* ReverseVideo::plugin_title() { return N_("Reverse video"); }
+const char* ReverseVideo::plugin_title() { return _("Reverse video"); }
 int ReverseVideo::is_realtime() { return 1; }
 
 
@@ -191,12 +192,14 @@ int ReverseVideo::process_buffer(VFrame *frame,
                read_frame(frame,
                        0,
                        input_position,
-                       frame_rate);
+                       frame_rate,
+                       0);
        else
                read_frame(frame,
                        0,
                        start_position,
-                       frame_rate);
+                       frame_rate,
+                       0);
        return 0;
 }
 
@@ -250,6 +253,13 @@ int ReverseVideo::load_configuration()
 // Convert start position to new direction
        if(get_direction() == PLAY_FORWARD)
        {
+//printf("ReverseVideo::load_configuration %d %ld %ld %ld %ld %ld\n",
+//     __LINE__,
+//     get_source_position(),
+//     get_source_start(),
+//     get_total_len(),
+//     range_start,
+//     range_end);
                input_position = get_source_position() - range_start;
                input_position = range_end - input_position - 1;
        }