mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-20 08:56:56 -05:00
fix some signed vs unsigned comparisons
This commit is contained in:
parent
5f92c152e3
commit
6f61ac9357
10 changed files with 49 additions and 44 deletions
|
|
@ -96,7 +96,7 @@ do_render(struct spa_loop *loop, bool async, uint32_t seq,
|
|||
uint8_t *map;
|
||||
void *sdata, *ddata;
|
||||
int sstride, dstride, ostride;
|
||||
int i;
|
||||
uint32_t i;
|
||||
uint8_t *src, *dst;
|
||||
|
||||
handle_events(data);
|
||||
|
|
@ -218,7 +218,7 @@ static struct {
|
|||
|
||||
static uint32_t sdl_format_to_id(struct data *data, Uint32 format)
|
||||
{
|
||||
int i;
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < SPA_N_ELEMENTS(video_formats); i++) {
|
||||
if (video_formats[i].format == format)
|
||||
|
|
@ -229,7 +229,7 @@ static uint32_t sdl_format_to_id(struct data *data, Uint32 format)
|
|||
|
||||
static Uint32 id_to_sdl_format(struct data *data, uint32_t id)
|
||||
{
|
||||
int i;
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < SPA_N_ELEMENTS(video_formats); i++) {
|
||||
if (*SPA_MEMBER(&data->type.video_format, video_formats[i].id, uint32_t) == id)
|
||||
|
|
@ -311,7 +311,7 @@ static void on_state_changed(void *_data, enum pw_remote_state old, enum pw_remo
|
|||
uint8_t buffer[1024];
|
||||
struct spa_pod_builder b = SPA_POD_BUILDER_INIT(buffer, sizeof(buffer));
|
||||
SDL_RendererInfo info;
|
||||
int i, c;
|
||||
uint32_t i, c;
|
||||
|
||||
printf("remote state: \"%s\"\n", pw_remote_state_as_string(state));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue