[vlc-commits] http: add one missing content type hack

Rémi Denis-Courmont git at videolan.org
Sun Jul 26 17:29:53 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul 26 17:39:17 2015 +0300| [7937e7e4a7b6c72f527903b2922413c5e9ff155d] | committer: Rémi Denis-Courmont

http: add one missing content type hack

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7937e7e4a7b6c72f527903b2922413c5e9ff155d
---

 modules/access/http.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/access/http.c b/modules/access/http.c
index 6574ab6..0854809 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -994,6 +994,11 @@ static int Control( access_t *p_access, int i_query, va_list args )
                 *type = strdup( "audio/mpeg" );
             else if( !strcasecmp( p_access->psz_access, "itpc" ) )
                 *type = strdup( "application/rss+xml" );
+            else if( !strcasecmp( p_access->psz_access, "unsv" ) &&
+                p_sys->psz_mime != NULL &&
+                !strcasecmp( p_sys->psz_mime, "misc/ultravox" ) )
+                /* Grrrr! detect ultravox server and force NSV demuxer */
+                *type = strdup( "video/nsa" );
             else
                 *type = strdup( p_sys->psz_mime );
             break;



More information about the vlc-commits mailing list