Use DEBUG_THREAD_SELF macro in session_vst.cc
This commit is contained in:
parent
5476b48539
commit
a9c449c4af
@ -22,6 +22,8 @@
|
||||
#endif
|
||||
#include <cstdio>
|
||||
|
||||
#include "pbd/debug.h"
|
||||
|
||||
#include "ardour/audioengine.h"
|
||||
#include "ardour/session.h"
|
||||
#include "ardour/tempo.h"
|
||||
@ -79,19 +81,11 @@ intptr_t Session::vst_callback (
|
||||
if (effect && effect->user) {
|
||||
plug = (VSTPlugin *) (effect->user);
|
||||
session = &plug->session();
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
SHOW_CALLBACK ("am callback 0x%p, opcode = %d, plugin = \"%s\" ", pthread_self().p, opcode, plug->name());
|
||||
#else
|
||||
SHOW_CALLBACK ("am callback 0x%x, opcode = %d, plugin = \"%s\" ", (int) pthread_self(), opcode, plug->name());
|
||||
#endif
|
||||
SHOW_CALLBACK ("am callback 0x%p, opcode = %d, plugin = \"%s\" ", DEBUG_THREAD_SELF, opcode, plug->name());
|
||||
} else {
|
||||
plug = 0;
|
||||
session = 0;
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
SHOW_CALLBACK ("am callback 0x%p, opcode = %d", pthread_self().p, opcode);
|
||||
#else
|
||||
SHOW_CALLBACK ("am callback 0x%x, opcode = %d", (int) pthread_self(), opcode);
|
||||
#endif
|
||||
SHOW_CALLBACK ("am callback 0x%p, opcode = %d", DEBUG_THREAD_SELF, opcode);
|
||||
}
|
||||
|
||||
switch(opcode){
|
||||
|
Loading…
Reference in New Issue
Block a user