Skip to content

Commit

Permalink
Fix space-view heuristics for videos
Browse files Browse the repository at this point in the history
Ensures each video gets its own space-view.

* Closes #7821
  • Loading branch information
emilk committed Oct 23, 2024
1 parent 613a35b commit 99dbf49
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,9 @@ fn size_from_blob(blob: &dyn Array, media_type: Option<&dyn Array>) -> Option<[u
reader.into_dimensions().ok().map(|size| size.into())
} else if media_type.is_video() {
re_tracing::profile_scope!("video");
if true {
None // TODO(#7821): Use the VideoCache here so we make sure we only load each video ONCE
} else {
re_video::VideoData::load_from_bytes(&blob, &media_type)
.ok()
.map(|video| video.dimensions())
}
re_video::VideoData::load_from_bytes(&blob, &media_type)
.ok()
.map(|video| video.dimensions())
} else {
None
}
Expand Down

0 comments on commit 99dbf49

Please sign in to comment.