mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
fix sign confusion
This commit is contained in:
parent
74e5f9fbcf
commit
e918f9f77c
60 changed files with 164 additions and 146 deletions
|
|
@ -122,11 +122,11 @@ struct impl {
|
|||
uint64_t last_error;
|
||||
|
||||
struct timespec now;
|
||||
int64_t start_time;
|
||||
int64_t sample_count;
|
||||
int64_t sample_time;
|
||||
int64_t last_ticks;
|
||||
int64_t last_monotonic;
|
||||
uint64_t start_time;
|
||||
uint64_t sample_count;
|
||||
uint64_t sample_time;
|
||||
uint64_t last_ticks;
|
||||
uint64_t last_monotonic;
|
||||
|
||||
uint64_t underrun;
|
||||
};
|
||||
|
|
@ -457,7 +457,8 @@ static int increase_bitpool(struct impl *this)
|
|||
|
||||
static int flush_data(struct impl *this, uint64_t now_time)
|
||||
{
|
||||
uint32_t total_frames, written;
|
||||
int written;
|
||||
uint32_t total_frames;
|
||||
uint64_t elapsed;
|
||||
int64_t queued;
|
||||
struct itimerspec ts;
|
||||
|
|
@ -465,7 +466,7 @@ static int flush_data(struct impl *this, uint64_t now_time)
|
|||
total_frames = 0;
|
||||
while (!spa_list_is_empty(&this->ready)) {
|
||||
uint8_t *src;
|
||||
int n_bytes, n_frames;
|
||||
uint32_t n_bytes, n_frames;
|
||||
struct buffer *b;
|
||||
struct spa_data *d;
|
||||
uint32_t index, offs, avail, l0, l1;
|
||||
|
|
@ -1150,7 +1151,7 @@ impl_node_port_use_buffers(struct spa_node *node,
|
|||
uint32_t port_id, struct spa_buffer **buffers, uint32_t n_buffers)
|
||||
{
|
||||
struct impl *this;
|
||||
int i;
|
||||
uint32_t i;
|
||||
|
||||
spa_return_val_if_fail(node != NULL, -EINVAL);
|
||||
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ static uint8_t a2dp_default_bitpool(struct spa_bt_monitor *monitor, uint8_t freq
|
|||
return 53;
|
||||
}
|
||||
|
||||
static int select_configuration_sbc(struct spa_bt_monitor *monitor, void *capabilities, int size, void *config)
|
||||
static int select_configuration_sbc(struct spa_bt_monitor *monitor, void *capabilities, size_t size, void *config)
|
||||
{
|
||||
a2dp_sbc_t *cap, conf;
|
||||
int bitpool;
|
||||
|
|
@ -238,7 +238,7 @@ static int select_configuration_sbc(struct spa_bt_monitor *monitor, void *capabi
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int select_configuration_aac(struct spa_bt_monitor *monitor, void *capabilities, int size, void *config)
|
||||
static int select_configuration_aac(struct spa_bt_monitor *monitor, void *capabilities, size_t size, void *config)
|
||||
{
|
||||
a2dp_aac_t *cap, conf;
|
||||
int freq;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
#define MAX_FACTORIES 16
|
||||
|
||||
static const struct spa_handle_factory *factories[MAX_FACTORIES];
|
||||
static int n_factories;
|
||||
static uint32_t n_factories;
|
||||
|
||||
int spa_handle_factory_register(const struct spa_handle_factory *factory)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue