Skip to content

Commit

Permalink
Signal EOS to player at the end of process_reponse_eof()
Browse files Browse the repository at this point in the history
  • Loading branch information
pylbrecht committed May 12, 2024
1 parent d662dd2 commit 8e1de68
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions components/script/dom/htmlmediaelement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2941,6 +2941,18 @@ impl FetchResponseListener for HTMLMediaElementFetchListener {
// => "If the media data cannot be fetched at all..."
elem.queue_dedicated_media_source_failure_steps();
}

if let Err(e) = elem
.player
.borrow()
.as_ref()
.unwrap()
.lock()
.unwrap()
.end_of_stream()
{
warn!("Could not signal EOS to player {:?}", e);
};
}

fn resource_timing_mut(&mut self) -> &mut ResourceFetchTiming {
Expand Down

0 comments on commit 8e1de68

Please sign in to comment.