rework histogram_bezier, init wm icon set_icon(gg), update de.po+msg/txt
[goodguy/history.git] / cinelerra-5.1 / cinelerra / pluginfclient.C
index 74c59f4fed39dcc0b168dcf9aa5ae7ca04338b4a..fb0329dfcb593c70598ec8f52835927c12702b7e 100644 (file)
@@ -16,6 +16,9 @@
 #include "vframe.h"
 #include "filexml.h"
 
+#ifdef FFMPEG3
+#define av_filter_iterate(p) ((*(const AVFilter**)(p))=avfilter_next(*(const AVFilter **)(p)))
+#endif
 
 static void ff_err(int ret, const char *fmt, ...)
 {
@@ -521,7 +524,8 @@ int PluginFClient_OptPanel::update()
        const char *cols[] = { "option", "value", };
        const int col1_w = 150;
        int wids[] = { col1_w, get_w()-col1_w };
-       BC_ListBox::update(&items[0], &cols[0], &wids[0], sizeof(items)/sizeof(items[0]));
+       BC_ListBox::update(&items[0], &cols[0], &wids[0], sizeof(items)/sizeof(items[0]),
+               get_xposition(), get_yposition(), get_highlighted_item());
        return 0;
 }
 
@@ -706,7 +710,7 @@ void PluginFClient::save_data(KeyFrame *keyframe)
        char string[BCTEXTLEN];
 
 // cause data to be stored directly in text
-       output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
+       output.set_shared_output(keyframe->xbuf);
        output.tag.set_title(to_upper(string, plugin_title()));
        const AVClass *filt_class = config.filter_class();
        if( filt_class && filt_class->option ) {
@@ -735,7 +739,7 @@ void PluginFClient::read_data(KeyFrame *keyframe)
 {
        FileXML input;
        char string[BCTEXTLEN];
-       input.set_shared_input(keyframe->get_data(), strlen(keyframe->get_data()));
+       input.set_shared_input(keyframe->xbuf);
 
        while( !input.read_tag() ) {
                to_upper(string, plugin_title());