Skip to content

Commit

Permalink
pass sdr white level to libmdk
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Oct 15, 2023
1 parent f7b62b1 commit e7ce223
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mdkvideo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ class mdkVideoSource {
}

void play(const char* url) {
SetGlobalOption("sdr.white", obs_get_video_sdr_white_level());
player_.setNextMedia(nullptr);
player_.set(State::Stopped);
player_.waitFor(State::Stopped);
Expand Down Expand Up @@ -506,6 +507,7 @@ static void mdkvideo_stop(void *data)

static void mdkvideo_restart(void *data)
{
SetGlobalOption("sdr.white", obs_get_video_sdr_white_level());
auto obj = static_cast<mdkVideoSource *>(data);
obj->player_.set(State::Playing);
}
Expand Down

0 comments on commit e7ce223

Please sign in to comment.