Skip to content

Commit 353637c

Browse files
committed
ug_input: Add missing initializers
1 parent b4a20f2 commit 353637c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/video_capture/ug_input.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,17 @@ using std::chrono::steady_clock;
7676
struct ug_input_state final : public frame_recv_delegate {
7777
mutex lock;
7878
queue<pair<struct video_frame *, struct audio_frame *>> frame_queue;
79-
struct display *display;
79+
struct display *display = nullptr;
8080

8181
void frame_arrived(struct video_frame *f, struct audio_frame *a) override;
8282
thread receiver_thread;
8383
unique_ptr<ultragrid_rtp_video_rxtx> video_rxtx;
84-
struct state_audio *audio;
84+
struct state_audio *audio = nullptr;
8585

8686
~ug_input_state() override = default;
8787

88-
std::chrono::steady_clock::time_point t0;
89-
int frames;
88+
std::chrono::steady_clock::time_point t0 = {};
89+
int frames = 0;
9090

9191
struct common_opts common = { COMMON_OPTS_INIT };
9292
};

0 commit comments

Comments
 (0)