From 8d228d6c5b4513e995a83e6829d809ff6181c15d Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Thu, 18 Mar 2010 21:07:38 +0000 Subject: [PATCH] * Add MIME to extension mapping for quicktime and 3gpp video files. --- upnpsoap.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/upnpsoap.c b/upnpsoap.c index bee739a..db23365 100644 --- a/upnpsoap.c +++ b/upnpsoap.c @@ -251,6 +251,10 @@ mime_to_ext(const char * mime, char * buf) strcpy(buf, "flv"); else if( strcmp(mime+6, "vnd.dlna.mpeg-tts") == 0 ) strcpy(buf, "mpg"); + else if( strcmp(mime+6, "quicktime") == 0 ) + strcpy(buf, "mov"); + else if( strcmp(mime+6, "3gpp") == 0 ) + strcpy(buf, "3gp"); else if( strcmp(mime+6, "x-tivo-mpeg") == 0 ) strcpy(buf, "TiVo"); else