Skip to content

Commit

Permalink
Remove some formats that don't seem to work by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Dec 6, 2024
1 parent 368131d commit b62c526
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/tmp
tarpaulin-report.html
*~
*.log
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Madamiru is a cross-platform video player written in [Rust](https://www.rust-lan
that can automatically shuffle multiple videos at once in a grid layout.

## Features
* Video formats: AVI, FLV, M4V, MKV, MP4, MPEG, QuickTime, WebM, WMV
* Video formats: AVI, M4V, MKV, MOV, MP4, WebM
* Image formats: BMP, GIF, ICO, JPEG, PNG, TIFF, SVG, WebP
* Subtitles are supported within MKV (but not as separate files)

Expand Down
6 changes: 2 additions & 4 deletions src/media.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,8 @@ impl Media {
let extension = path.file_extension().map(|x| x.to_lowercase());

match info.mime_type() {
"video/mp4" | "video/mpeg" | "video/quicktime" | "video/webm" | "video/x-flv" | "video/x-m4v"
| "video/x-matroska" | "video/x-ms-wmv" | "video/x-msvideo" => {
Some(Self::Video { path: path.clone() })
}
"video/mp4" | "video/quicktime" | "video/webm" | "video/x-m4v" | "video/x-matroska"
| "video/x-msvideo" => Some(Self::Video { path: path.clone() }),
"image/bmp"
| "image/jpeg"
| "image/png"
Expand Down

0 comments on commit b62c526

Please sign in to comment.