Fix some -Wenum-conversion errors

Make pw_direction and spa_direction the same
Explicitly cast some enums or use the right enums
This commit is contained in:
Wim Taymans 2020-04-04 19:59:27 +02:00
parent 6937ec5e63
commit a5b0553328
6 changed files with 8 additions and 9 deletions

View file

@ -559,7 +559,7 @@ static void source_callback(struct source_data *d)
pa_source_info i;
pa_format_info ii[1];
pa_format_info *ip[1];
enum pa_sink_flags flags;
enum pa_source_flags flags;
flags = PA_SOURCE_LATENCY | PA_SOURCE_DYNAMIC_LATENCY |
PA_SOURCE_DECIBEL_VOLUME;