compiler fixes

This commit is contained in:
Wim Taymans 2019-06-07 17:15:10 +02:00
parent 21e904d694
commit 78109838a9
2 changed files with 3 additions and 3 deletions

View file

@ -20,6 +20,6 @@ pipewire_jack = shared_library('jack',
soversion : 0, soversion : 0,
c_args : pipewire_jack_c_args, c_args : pipewire_jack_c_args,
include_directories : [configinc], include_directories : [configinc],
dependencies : [pipewire_dep, jack_dep], dependencies : [pipewire_dep, jack_dep, mathlib],
install : false, install : false,
) )

View file

@ -1843,8 +1843,8 @@ jack_client_t * jack_client_open (const char *client_name,
mix2 = mix2_c; mix2 = mix2_c;
cpu_iface = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_CPU); cpu_iface = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_CPU);
if (cpu_iface) { if (cpu_iface) {
uint32_t flags = spa_cpu_get_flags(cpu_iface);
#if defined (__SSE__) #if defined (__SSE__)
uint32_t flags = spa_cpu_get_flags(cpu_iface);
if (flags & SPA_CPU_FLAG_SSE) if (flags & SPA_CPU_FLAG_SSE)
mix2 = mix2_sse; mix2 = mix2_sse;
#endif #endif
@ -3159,7 +3159,7 @@ int jack_get_cycle_times(const jack_client_t *client,
*current_usecs = c->jack_position.usecs; *current_usecs = c->jack_position.usecs;
*period_usecs = c->buffer_size / (c->sample_rate * c->rate_diff); *period_usecs = c->buffer_size / (c->sample_rate * c->rate_diff);
*next_usecs = c->jack_position.usecs + (*period_usecs * 1000000.0f); *next_usecs = c->jack_position.usecs + (*period_usecs * 1000000.0f);
pw_log_trace("client %p: %d %ld %ld %f", c, *current_frames, pw_log_trace("client %p: %d %"PRIu64" %"PRIu64" %f", c, *current_frames,
*current_usecs, *next_usecs, *period_usecs); *current_usecs, *next_usecs, *period_usecs);
return 0; return 0;
} }