Browse Source

JackWrapperAPI.cpp: use open_library in jack_client_name_size, jack_port_name_size and jack_port_type_size.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2083 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.71
sletz 17 years ago
parent
commit
e8e8e37adf
3 changed files with 14 additions and 1 deletions
  1. +4
    -0
      ChangeLog
  2. +9
    -0
      common/JackAPIWrapper.cpp
  3. +1
    -1
      common/JackClient.cpp

+ 4
- 0
ChangeLog View File

@@ -20,6 +20,10 @@ Fernando Lopez-Lezcano
Jackdmp changes log Jackdmp changes log
--------------------------- ---------------------------


2008-03-26 Stephane Letz <letz@grame.fr>
* JackWrapperAPI.cpp: use open_library in jack_client_name_size, jack_port_name_size and jack_port_type_size.

2008-03-20 Stephane Letz <letz@grame.fr> 2008-03-20 Stephane Letz <letz@grame.fr>
* Transport timebase fix. * Transport timebase fix.


+ 9
- 0
common/JackAPIWrapper.cpp View File

@@ -961,6 +961,9 @@ static jack_client_name_size_fun_def jack_client_name_size_fun = 0;
EXPORT int jack_client_name_size(void) EXPORT int jack_client_name_size(void)
{ {
jack_log("jack_client_name_size"); jack_log("jack_client_name_size");
// Library check...
if (!open_library())
return 0;
return (*jack_client_name_size_fun)(); return (*jack_client_name_size_fun)();
} }


@@ -969,6 +972,9 @@ static jack_port_name_size_fun_def jack_port_name_size_fun = 0;
EXPORT int jack_port_name_size(void) EXPORT int jack_port_name_size(void)
{ {
jack_log("jack_port_name_size"); jack_log("jack_port_name_size");
// Library check...
if (!open_library())
return 0;
return (*jack_port_name_size_fun)(); return (*jack_port_name_size_fun)();
} }


@@ -977,6 +983,9 @@ static jack_port_type_size_fun_def jack_port_type_size_fun = 0;
EXPORT int jack_port_type_size(void) EXPORT int jack_port_type_size(void)
{ {
jack_log("jack_port_type_size"); jack_log("jack_port_type_size");
// Library check...
if (!open_library())
return 0;
return (*jack_port_type_size_fun)(); return (*jack_port_type_size_fun)();
} }




+ 1
- 1
common/JackClient.cpp View File

@@ -502,7 +502,7 @@ int JackClient::PortRegister(const char* port_name, const char* port_type, unsig
return 0; // Means failure here... return 0; // Means failure here...
} }


jack_log("JackClient::PortRegister ref = %ld name = %s type = %s", GetClientControl()->fRefNum, name.c_str(), port_type);
jack_log("JackClient::PortRegister ref = %ld name = %s type = %s", GetClientControl()->fRefNum, name.c_str(), port_type);


int result = -1; int result = -1;
unsigned int port_index = NO_PORT; unsigned int port_index = NO_PORT;


Loading…
Cancel
Save