aboutsummaryrefslogtreecommitdiff
path: root/stream/types/src/lib.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2026-03-05 15:04:47 +0100
committermetamuffin <metamuffin@disroot.org>2026-03-05 15:04:47 +0100
commit3fd3df27b1611867d8a2a224a7849bd4505406fa (patch)
tree26669ddc088c8c2d1b9ea1fcdab12c708fb3a248 /stream/types/src/lib.rs
parentbc5f0f8ee3532f078674758212b222e009846e3a (diff)
downloadjellything-3fd3df27b1611867d8a2a224a7849bd4505406fa.tar
jellything-3fd3df27b1611867d8a2a224a7849bd4505406fa.tar.bz2
jellything-3fd3df27b1611867d8a2a224a7849bd4505406fa.tar.zst
rename mpeg4 mp4
Diffstat (limited to 'stream/types/src/lib.rs')
-rw-r--r--stream/types/src/lib.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/stream/types/src/lib.rs b/stream/types/src/lib.rs
index 50227ec..6a4fc79 100644
--- a/stream/types/src/lib.rs
+++ b/stream/types/src/lib.rs
@@ -134,7 +134,7 @@ pub enum StreamContainer {
WebM,
Matroska,
WebVTT,
- MPEG4,
+ MP4,
JVTT,
}
@@ -145,8 +145,8 @@ impl StreamContainer {
(Self::WebM, _) => "video/webm",
(Self::Matroska, TrackKind::Audio) => "audio/x-matroska",
(Self::Matroska, _) => "video/x-matroska",
- (Self::MPEG4, TrackKind::Audio) => "audio/mp4",
- (Self::MPEG4, _) => "video/mp4",
+ (Self::MP4, TrackKind::Audio) => "audio/mp4",
+ (Self::MP4, _) => "video/mp4",
(Self::WebVTT, _) => "text/vtt",
(Self::JVTT, _) => "application/jellything-vtt+json",
}
@@ -296,7 +296,7 @@ impl Display for StreamContainer {
StreamContainer::Matroska => "matroska",
StreamContainer::WebVTT => "webvtt",
StreamContainer::JVTT => "jvtt",
- StreamContainer::MPEG4 => "mpeg4",
+ StreamContainer::MP4 => "mp4",
})
}
}
@@ -308,7 +308,7 @@ impl FromStr for StreamContainer {
"matroska" => StreamContainer::Matroska,
"webvtt" => StreamContainer::WebVTT,
"jvtt" => StreamContainer::JVTT,
- "mpeg4" => StreamContainer::MPEG4,
+ "mp4" => StreamContainer::MP4,
_ => return Err(()),
})
}