Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4479 from mossywell/master
Change FLAC MIME type
- Loading branch information
1 parent
d4b12c3
commit 9c52c94
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
lib/libUPnP/patches/0024-Neptune-Add-audio-x-flac-MIME-type.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
From 0308017deff74d962190b9621d4dfeaa1df20ef8 Mon Sep 17 00:00:00 2001 | ||
From: mossywell <mark@mossywell.com> | ||
Date: Fri, 28 Mar 2014 07:26:49 +0000 | ||
Subject: [PATCH 24/24] Neptune Add audio/x-flac MIME type | ||
|
||
Change streaming FLAC MIME type from application/octet to audio/x-flac to | ||
support Frontier Silicon systems (such as the Axis X3) that require | ||
this. (Others don't care.) | ||
|
||
FLAC not added to DefaultDlnaMap as * suffices. | ||
|
||
(Commit amend: tabs --> spaces) | ||
(Commit amend: flac --> x-flac) | ||
--- | ||
lib/libUPnP/Neptune/Source/Core/NptHttp.cpp | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
diff --git a/lib/libUPnP/Neptune/Source/Core/NptHttp.cpp b/lib/libUPnP/Neptune/Source/Core/NptHttp.cpp | ||
index 07586f9..d2e36b1 100644 | ||
--- a/lib/libUPnP/Neptune/Source/Core/NptHttp.cpp | ||
+++ b/lib/libUPnP/Neptune/Source/Core/NptHttp.cpp | ||
@@ -2880,6 +2880,7 @@ NPT_HttpFileRequestHandler_DefaultFileTypeMap[] = { | ||
{"aif", "audio/x-aiff"}, | ||
{"aifc", "audio/x-aiff"}, | ||
{"aiff", "audio/x-aiff"}, | ||
+ {"flac", "audio/x-flac"}, | ||
{"mka", "audio/x-matroska"}, | ||
{"mpa", "audio/mpeg"}, | ||
{"mp2", "audio/mpeg"}, | ||
-- | ||
1.8.4.msysgit.0 | ||
|