build tweaks, x264/nasm + x265/10bit, plugin xlats, y4m pipe fmt, fix leaks
[goodguy/history.git] / cinelerra-5.1 / cinelerra / pluginfclient.C
index bb821d344fb68a865d37082339543faddae660f8..3a2dfc8375a7f240368b79f6e69f6513dd01bf9a 100644 (file)
@@ -1098,8 +1098,8 @@ int PluginFFilter::init(const char *name, PluginFClientConfig *conf)
                graph->nb_threads  = 0;
        }
        fctx = avfilter_graph_alloc_filter(graph, filter, inst_name);
-       fctx->thread_type = graph->thread_type; // bug in avfilter
        if( !fctx ) return AVERROR(ENOMEM);
+       fctx->thread_type = graph->thread_type; // bug in avfilter
        if( conf ) {
                AVDictionary *opts = 0;
                for( int i=0; i<conf->size(); ++i ) {