X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fattachmentpoint.C;h=362a5e1f43e88af652578204398d1a180b11ce3c;hb=d54e2016ca0bea24cd4371058d0f75aeebdb044f;hp=1d2946132d87df9ae6aebcc8d090c849a331452e;hpb=e13e0a987ad66b8274fcbaddc71eac583ea80bea;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/attachmentpoint.C b/cinelerra-5.1/cinelerra/attachmentpoint.C index 1d294613..362a5e1f 100644 --- a/cinelerra-5.1/cinelerra/attachmentpoint.C +++ b/cinelerra-5.1/cinelerra/attachmentpoint.C @@ -62,7 +62,8 @@ int AttachmentPoint::reset_parameters() void AttachmentPoint::reset_status() { - if(!(void *)this) printf("AttachmentPoint::reset_status NULL\n"); + void *This = this; + if(!This) printf("AttachmentPoint::reset_status NULL\n"); start_position = 0; len = 0; sample_rate = 0; @@ -79,7 +80,8 @@ int AttachmentPoint::identical(AttachmentPoint *old) int AttachmentPoint::render_init() { - if(!(void *)this) printf("AttachmentPoint::render_init NULL\n"); + void *This = this; + if(!This) printf("AttachmentPoint::render_init NULL\n"); if(plugin_server && plugin->on) { // Start new plugin servers if the number of nodes changed. @@ -155,7 +157,8 @@ void AttachmentPoint::render_stop() int AttachmentPoint::attach_virtual_plugin(VirtualNode *virtual_plugin) { - if(!(void *)this) printf("AttachmentPoint::attach_virtual_plugin NULL\n"); + void *This = this; + if(!This) printf("AttachmentPoint::attach_virtual_plugin NULL\n"); int buffer_number = 0; if(plugin_server && plugin->on) @@ -183,7 +186,8 @@ int AttachmentPoint::attach_virtual_plugin(VirtualNode *virtual_plugin) int AttachmentPoint::multichannel_shared(int search_new) { - if(!(void *)this) printf("AttachmentPoint::multichannel_shared NULL\n"); + void *This = this; + if(!This) printf("AttachmentPoint::multichannel_shared NULL\n"); if(search_new) { if(new_virtual_plugins.total && @@ -201,7 +205,8 @@ int AttachmentPoint::multichannel_shared(int search_new) int AttachmentPoint::singlechannel() { - if(!(void *)this) printf("AttachmentPoint::singlechannel NULL\n"); + void *This = this; + if(!This) printf("AttachmentPoint::singlechannel NULL\n"); if(plugin_server && !plugin_server->multichannel) return 1; return 0; } @@ -210,7 +215,8 @@ int AttachmentPoint::singlechannel() void AttachmentPoint::render_gui(void *data, PluginServer *server) { //printf("AttachmentPoint::render_gui 1 %p %p\n", server, plugin_servers.get(0)); - if(!(void *)this) printf("AttachmentPoint::render_gui 1 NULL\n"); + void *This = this; + if(!This) printf("AttachmentPoint::render_gui 1 NULL\n"); // Discard if not 1st plugin server, so single channel plugins don't get double GUI updates if(server != plugin_servers.get(0)) return; @@ -221,7 +227,8 @@ void AttachmentPoint::render_gui(void *data, PluginServer *server) void AttachmentPoint::render_gui(void *data, int size, PluginServer *server) { - if(!(void *)this) printf("AttachmentPoint::render_gui 2 NULL\n"); + void *This = this; + if(!This) printf("AttachmentPoint::render_gui 2 NULL\n"); // Discard if not 1st plugin server, so single channel plugins don't get double GUI updates if(server != plugin_servers.get(0)) return; @@ -239,7 +246,8 @@ int AttachmentPoint::gui_open() int AttachmentPoint::dump(FILE *fp) { - if((void *)this) + void *This = this; + if(This) { fprintf(fp," Attachmentpoint this=%p virtual_plugins=%d\n", this, new_virtual_plugins.total); if(plugin_server) plugin_server->dump(fp);