Skip to content

Commit

Permalink
added caps init condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Rossmaxx committed Jul 3, 2023
1 parent 7785ebc commit dd89d21
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions plugins/LadspaEffect/caps/interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
(2541 - 2580 donated to artemio@kdemail.net)
*/

// #include <sys/time.h>

#include "basics.h"

#include "Cabinet.h"
Expand Down Expand Up @@ -58,15 +56,6 @@
#define N 39
static DescriptorStub * descriptors [N];

/*static inline void
seed()
{
static struct timeval tv;
gettimeofday (&tv, 0);
srand (tv.tv_sec ^ tv.tv_usec);
}*/

extern "C" {

void caps_so_init()
Expand Down Expand Up @@ -140,4 +129,10 @@ ladspa_descriptor (unsigned long i)
return 0;
}

struct CapsSoInit {
CapsSoInit() { caps_so_init(); }
~CapsSoInit() { caps_so_fini(); }
};
static CapsSoInit capsSoInit;

}; /* extern "C" */

0 comments on commit dd89d21

Please sign in to comment.