don' spoof mkv as mpeg

this fix playback on Panasonic Viera TVs (but an break some old Samsungs too)
This commit is contained in:
nikk gitanes
2021-09-14 22:42:39 +03:00
parent 8f2cf99592
commit 3f8d2c3145

View File

@@ -101,11 +101,11 @@ func MimeTypeByPath(filePath string) (ret mimeType, err error) {
ret, err = mimeTypeByContent(filePath) ret, err = mimeTypeByContent(filePath)
} }
// Custom DLNA-compat mime mappings // Custom DLNA-compat mime mappings
// TODO: make this client headers / profile map // TODO: make this depend on client headers / profile map
if ret == "video/mp2t" { if ret == "video/mp2t" {
ret = "video/mpeg" ret = "video/mpeg"
} else if ret == "video/x-matroska" { // } else if ret == "video/x-matroska" {
ret = "video/mpeg" // ret = "video/mpeg"
} else if ret == "video/x-msvideo" { } else if ret == "video/x-msvideo" {
ret = "video/avi" ret = "video/avi"
} else if ret == "" { } else if ret == "" {