Skip to content

Commit 99dbf49

Browse files
committed
Fix space-view heuristics for videos
Ensures each video gets its own space-view. * Closes #7821
1 parent 613a35b commit 99dbf49

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

crates/viewer/re_space_view_spatial/src/max_image_dimension_subscriber.rs

+3-7
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,9 @@ fn size_from_blob(blob: &dyn Array, media_type: Option<&dyn Array>) -> Option<[u
152152
reader.into_dimensions().ok().map(|size| size.into())
153153
} else if media_type.is_video() {
154154
re_tracing::profile_scope!("video");
155-
if true {
156-
None // TODO(#7821): Use the VideoCache here so we make sure we only load each video ONCE
157-
} else {
158-
re_video::VideoData::load_from_bytes(&blob, &media_type)
159-
.ok()
160-
.map(|video| video.dimensions())
161-
}
155+
re_video::VideoData::load_from_bytes(&blob, &media_type)
156+
.ok()
157+
.map(|video| video.dimensions())
162158
} else {
163159
None
164160
}

0 commit comments

Comments
 (0)