Skip to content

Commit

Permalink
Wrapper: Initialize video_width_ & video_width_ at -1
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmercerind committed Oct 30, 2021
1 parent 8261088 commit eb50de9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dartvlc/internal/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class PlayerInternal {
std::unique_ptr<PlayerState> state_ = nullptr;
std::unique_ptr<uint8_t[]> video_frame_buffer_ =
std::make_unique<uint8_t[]>(BUFFER_SIZE);
int32_t video_width_ = 0;
int32_t video_height_ = 0;
int32_t video_width_ = -1;
int32_t video_height_ = -1;
std::optional<int32_t> preferred_video_width_ = std::nullopt;
std::optional<int32_t> preferred_video_height_ = std::nullopt;
bool is_playlist_modified_ = false;
Expand Down

0 comments on commit eb50de9

Please sign in to comment.