Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Yowlen/5eef8bb8bea965c38df1442ecb5d1f98 to your computer and use it in GitHub Desktop.
Save Yowlen/5eef8bb8bea965c38df1442ecb5d1f98 to your computer and use it in GitHub Desktop.
Patch to add webm and webp mimetype support to Kodi's UPNP renderer
From 4730b8178b5afc8a479f9897ae6412ad1c088db8 Mon Sep 17 00:00:00 2001
From: Alicia <yowlen11011@gmail.com>
Date: Fri, 13 Nov 2020 12:13:27 -0500
Subject: [PATCH] Add webm and webp mimetype support to UPNP Renderer
---
xbmc/network/upnp/UPnPRenderer.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/xbmc/network/upnp/UPnPRenderer.cpp b/xbmc/network/upnp/UPnPRenderer.cpp
index 2997d75cef..871209f502 100644
--- a/xbmc/network/upnp/UPnPRenderer.cpp
+++ b/xbmc/network/upnp/UPnPRenderer.cpp
@@ -109,6 +109,7 @@ CUPnPRenderer::SetupServices()
",http-get:*:audio/RED:*"
",http-get:*:audio/VDVI:*"
",http-get:*:audio/ac3:*"
+ ",http-get:*:audio/webm:*"
",http-get:*:audio/vorbis:*"
",http-get:*:audio/speex:*"
",http-get:*:audio/flac:*"
@@ -128,6 +129,7 @@ CUPnPRenderer::SetupServices()
",http-get:*:image/ief:*"
",http-get:*:image/png:*"
",http-get:*:image/tiff:*"
+ ",http-get:*:image/webp:*"
",http-get:*:video/avi:*"
",http-get:*:video/divx:*"
",http-get:*:video/mpeg:*"
@@ -151,6 +153,7 @@ CUPnPRenderer::SetupServices()
",http-get:*:video/MP1S:*"
",http-get:*:video/MP2P:*"
",http-get:*:video/BMPEG:*"
+ ",http-get:*:video/webm:*"
",http-get:*:video/xvid:*"
",http-get:*:video/x-divx:*"
",http-get:*:video/x-matroska:*"
--
2.25.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment