X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fpluginfclient.C;h=fb0329dfcb593c70598ec8f52835927c12702b7e;hb=refs%2Fheads%2Fmaster;hp=74c59f4fed39dcc0b168dcf9aa5ae7ca04338b4a;hpb=8fe9a22b4600301fee74b27bd8e0c44f9d681079;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/pluginfclient.C b/cinelerra-5.1/cinelerra/pluginfclient.C index 74c59f4f..fb0329df 100644 --- a/cinelerra-5.1/cinelerra/pluginfclient.C +++ b/cinelerra-5.1/cinelerra/pluginfclient.C @@ -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());