mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-11 13:30:07 -05:00
fix sign confusion
This commit is contained in:
parent
74e5f9fbcf
commit
e918f9f77c
60 changed files with 164 additions and 146 deletions
|
|
@ -53,7 +53,7 @@ static inline int spa_buffer_alloc_fill_info(struct spa_buffer_alloc_info *info,
|
|||
uint32_t data_aligns[n_datas])
|
||||
{
|
||||
size_t size;
|
||||
int i;
|
||||
uint32_t i;
|
||||
|
||||
info->n_metas = n_metas;
|
||||
info->metas = metas;
|
||||
|
|
@ -93,7 +93,7 @@ spa_buffer_alloc_layout(struct spa_buffer_alloc_info *info,
|
|||
{
|
||||
struct spa_buffer *b = skel_mem;
|
||||
size_t size;
|
||||
int i;
|
||||
uint32_t i;
|
||||
void **dp, *skel, *data;
|
||||
struct spa_chunk *cp;
|
||||
|
||||
|
|
@ -151,7 +151,7 @@ spa_buffer_alloc_layout_array(struct spa_buffer_alloc_info *info,
|
|||
uint32_t n_buffers, struct spa_buffer *buffers[n_buffers],
|
||||
void *skel_mem, void *data_mem)
|
||||
{
|
||||
int i;
|
||||
uint32_t i;
|
||||
size_t data_size = info->data_size + info->meta_size + info->chunk_size;
|
||||
for (i = 0; i < n_buffers; i++) {
|
||||
buffers[i] = spa_buffer_alloc_layout(info, skel_mem, data_mem, i);
|
||||
|
|
|
|||
|
|
@ -114,7 +114,6 @@ spa_debug_format_value(const struct spa_type_info *info,
|
|||
static inline int spa_debug_format(int indent,
|
||||
const struct spa_type_info *info, const struct spa_pod *format)
|
||||
{
|
||||
int i;
|
||||
const char *media_type;
|
||||
const char *media_subtype;
|
||||
struct spa_pod_prop *prop;
|
||||
|
|
@ -160,7 +159,7 @@ static inline int spa_debug_format(int indent,
|
|||
SPA_POD_OBJECT_FOREACH((struct spa_pod_object*)format, prop) {
|
||||
const char *key;
|
||||
const struct spa_type_info *ti;
|
||||
uint32_t type, size, n_vals, choice;
|
||||
uint32_t i, type, size, n_vals, choice;
|
||||
const struct spa_pod *val;
|
||||
void *vals;
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,8 @@ static inline int spa_debug_mem(int indent, const void *data, size_t size)
|
|||
{
|
||||
const uint8_t *t = data;
|
||||
char buffer[512];
|
||||
int i, pos = 0;
|
||||
size_t i;
|
||||
int pos = 0;
|
||||
|
||||
for (i = 0; i < size; i++) {
|
||||
if (i % 16 == 0)
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ extern "C" {
|
|||
|
||||
#include <endian.h>
|
||||
|
||||
#define SPA_AUDIO_MAX_CHANNELS 64
|
||||
#define SPA_AUDIO_MAX_CHANNELS 64u
|
||||
|
||||
enum spa_audio_format {
|
||||
SPA_AUDIO_FORMAT_UNKNOWN,
|
||||
|
|
|
|||
|
|
@ -93,10 +93,9 @@ spa_pod_filter_prop(struct spa_pod_builder *b,
|
|||
{
|
||||
const struct spa_pod *v1, *v2;
|
||||
struct spa_pod_choice *nc;
|
||||
uint32_t nalt1, nalt2;
|
||||
uint32_t j, k, nalt1, nalt2;
|
||||
void *alt1, *alt2, *a1, *a2;
|
||||
uint32_t type, size, p1c, p2c;
|
||||
int j, k;
|
||||
|
||||
v1 = spa_pod_get_values(&p1->value, &nalt1, &p1c);
|
||||
alt1 = SPA_POD_BODY(v1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue