add adams 4.6->4.6.1 (mostly)
[goodguy/history.git] / cinelerra-5.0 / plugins / reversevideo / reversevideo.C
index 004b9f04ca00faeb7cf64ba4adf8dd633180da9a..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"
@@ -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;
        }