Skip to content

Commit

Permalink
Move DCHECK call
Browse files Browse the repository at this point in the history
  • Loading branch information
at-ninja committed May 31, 2024
1 parent ceae521 commit 5750095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cobalt/dom/media_source.cc
Original file line number Diff line number Diff line change
Expand Up @@ -523,10 +523,10 @@ scoped_refptr<TimeRanges> MediaSource::GetSeekable() const {
// Only MediaSourceAttachments on the same thread should use this
// codepath. Cross-thread attachments should use GetBufferedRange to
// avoid cross-thread, cross-element calls where possible.
DCHECK(media_source_attachment_);
auto* attachment =
base::polymorphic_downcast<SameThreadMediaSourceAttachment*>(
media_source_attachment_.get());
DCHECK(attachment);
buffered = attachment->GetElementBufferedRange();
}

Expand Down

0 comments on commit 5750095

Please sign in to comment.