Skip to content

Commit 948d559

Browse files
committed
video_display.c: IWYU
1 parent b7fddb8 commit 948d559

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

src/video_display.c

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,29 @@
5959
* however, not reflected by decoder which queried the data before.
6060
*/
6161

62-
#include "config.h"
63-
#include "config_unix.h"
64-
#include "config_win32.h"
62+
#include "video_display.h"
63+
64+
#include <assert.h> // for assert
65+
#include <errno.h> // for errno
66+
#include <math.h> // for floor
67+
#include <pthread.h> // for pthread_create, pthread_join
68+
#include <stdint.h> // for uint32_t
69+
#include <stdio.h> // for perror, printf
70+
#include <stdlib.h> // for free, abort, calloc
71+
#include <string.h> // for strcmp, strncpy, memcpy, strlen
72+
73+
#include "compat/strings.h" // for strncasecmp
6574
#include "debug.h"
75+
#include "host.h" // for exit_uv, mainloop, EXIT_FAIL...
6676
#include "lib_common.h"
77+
#include "messaging.h" // for new_response, msg_universal
6778
#include "module.h"
6879
#include "tv.h"
6980
#include "types.h"
7081
#include "utils/color_out.h"
7182
#include "utils/macros.h"
7283
#include "utils/thread.h"
7384
#include "video.h"
74-
#include "video_display.h"
7585
#include "video_display/splashscreen.h"
7686
#include "vo_postprocess.h"
7787

@@ -584,16 +594,16 @@ void display_put_audio_frame(struct display *d, const struct audio_frame *frame)
584594
* @param quant_samples number of bits per sample
585595
* @param channels count of channels
586596
* @param sample_rate samples per second
587-
* @retval TRUE if reconfiguration succeeded
588-
* @retval FALSE if reconfiguration failed
597+
* @retval true if reconfiguration succeeded
598+
* @retval false if reconfiguration failed
589599
*/
590600
bool display_reconfigure_audio(struct display *d, int quant_samples, int channels, int sample_rate)
591601
{
592602
assert(d->magic == DISPLAY_MAGIC);
593603
if (!d->funcs->reconfigure_audio) {
594604
log_msg(LOG_LEVEL_FATAL, MOD_NAME "Selected display '%s' doesn't support audio!\n", d->display_name);
595605
exit_uv(EXIT_FAIL_USAGE);
596-
return FALSE;
606+
return false;
597607
}
598608
return d->funcs->reconfigure_audio(d->state, quant_samples, channels, sample_rate);
599609
}

0 commit comments

Comments
 (0)