Skip to content

Commit

Permalink
Fix MediaModule write duration values
Browse files Browse the repository at this point in the history
Changes the TimeDeltas to instantiated from microseconds rather than
milliseconds.
  • Loading branch information
osagie98 committed Jan 19, 2024
1 parent 4d7b22c commit 18ade95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cobalt/media/media_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ class MediaModule : public WebMediaPlayerFactory,

#if SB_API_VERSION >= 15
base::TimeDelta audio_write_duration_local_ =
base::TimeDelta::FromMilliseconds(kSbPlayerWriteDurationLocal);
base::TimeDelta::FromMicroseconds(kSbPlayerWriteDurationLocal);
base::TimeDelta audio_write_duration_remote_ =
base::TimeDelta::FromMilliseconds(kSbPlayerWriteDurationRemote);
base::TimeDelta::FromMicroseconds(kSbPlayerWriteDurationRemote);
#endif // SB_API_VERSION >= 15

DecoderBufferAllocator decoder_buffer_allocator_;
Expand Down

0 comments on commit 18ade95

Please sign in to comment.