Skip to content

Commit 97a6db3

Browse files
committed
Wrapper: Initialize video_width_ & video_width_ at -1
1 parent 8261088 commit 97a6db3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dartvlc/internal/internal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class PlayerInternal {
2626
std::unique_ptr<PlayerState> state_ = nullptr;
2727
std::unique_ptr<uint8_t[]> video_frame_buffer_ =
2828
std::make_unique<uint8_t[]>(BUFFER_SIZE);
29-
int32_t video_width_ = 0;
30-
int32_t video_height_ = 0;
29+
int32_t video_width_ = -1;
30+
int32_t video_height_ = -1;
3131
std::optional<int32_t> preferred_video_width_ = std::nullopt;
3232
std::optional<int32_t> preferred_video_height_ = std::nullopt;
3333
bool is_playlist_modified_ = false;

0 commit comments

Comments
 (0)