Skip to content

Commit ed78ac0

Browse files
committed
disp/pipewire: Remove config includes
1 parent 9e44d81 commit ed78ac0

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

src/video_display/pipewire.cpp

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
2-
#include "config.h"
3-
#include "config_unix.h"
4-
#include "config_win32.h"
5-
6-
#include <assert.h>
7-
#include <stdlib.h>
1+
#include <cassert>
2+
#include <cstdlib>
83
#include <unistd.h>
9-
#include <string.h>
4+
#include <cstring>
105
#include <memory>
116
#include <atomic>
7+
#include <sys/mman.h>
128

139
#include "debug.h"
1410
#include "host.h"
@@ -329,7 +325,7 @@ static bool display_pw_putf(void *state, struct video_frame *frame, long long fl
329325
{
330326
auto s = static_cast<display_pw_state *>(state);
331327

332-
if (flags == PUTF_DISCARD || frame == NULL || frame == s->dummy_frame.get()) {
328+
if (flags == PUTF_DISCARD || !frame || frame == s->dummy_frame.get()) {
333329
return true;
334330
}
335331

@@ -447,21 +443,21 @@ static bool display_pw_reconfigure(void *state, struct video_desc desc)
447443

448444
static void display_pw_probe(struct device_info **available_cards, int *count, void (**deleter)(void *)) {
449445
UNUSED(deleter);
450-
*available_cards = NULL;
446+
*available_cards = nullptr;
451447
*count = 0;
452448
}
453449

454450
static const struct video_display_info display_pw_info = {
455451
display_pw_probe,
456452
display_pw_init,
457-
NULL, // _run
453+
nullptr, // _run
458454
display_pw_done,
459455
display_pw_getf,
460456
display_pw_putf,
461457
display_pw_reconfigure,
462458
display_pw_get_property,
463-
NULL, // _put_audio_frame
464-
NULL, // _reconfigure_audio
459+
nullptr, // _put_audio_frame
460+
nullptr, // _reconfigure_audio
465461
MOD_NAME,
466462
};
467463

0 commit comments

Comments
 (0)