]> git.sesse.net Git - vlc/blobdiff - modules/access/http.c
Export Content-Type out of HTTP access using Control.
[vlc] / modules / access / http.c
index a1d1d4a8a4f6b35db0d14c3a587c140efb36af9f..32defac17d74f7581a483e8f8cc5214020e227bd 100644 (file)
@@ -746,6 +746,11 @@ static int Control( access_t *p_access, int i_query, va_list args )
                 vlc_meta_Set( p_meta, vlc_meta_NowPlaying, p_sys->psz_icy_title );
             break;
 
+        case ACCESS_GET_CONTENT_TYPE:
+            *va_arg( args, char ** ) =
+                p_sys->psz_mime ? strdup( p_sys->psz_mime ) : NULL;
+            break;
+
         case ACCESS_GET_TITLE_INFO:
         case ACCESS_SET_TITLE:
         case ACCESS_SET_SEEKPOINT: