Skip to content

Commit 6ad5e98

Browse files
committed
chore: Wrap Bundle with a Box in PlayingContent
Bundle is large and causes size differences between variants of PlayingContent.
1 parent 8449647 commit 6ad5e98

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

desktop/src/player.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ impl ActivePlayer {
164164
tracing::warn!("{warning}");
165165
}
166166
}
167-
content = PlayingContent::Bundle(movie_url.clone(), bundle);
167+
content = PlayingContent::Bundle(movie_url.clone(), Box::new(bundle));
168168
}
169169
Err(BundleError::BundleDoesntExist)
170170
| Err(BundleError::InvalidSource(BundleSourceError::UnknownSource)) => {

frontend-utils/src/content.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use url::Url;
66

77
pub enum PlayingContent {
88
DirectFile(Url),
9-
Bundle(Url, Bundle),
9+
Bundle(Url, Box<Bundle>),
1010
}
1111

1212
impl Debug for PlayingContent {

0 commit comments

Comments
 (0)