From 961650c21f93dfd188176b32e2c97b6c4d59d9f5 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sat, 14 May 2022 12:03:38 +0200 Subject: [PATCH] - ushare: add patches --- .../ushare/patches/0002-fix-mime-types.patch | 28 +++++++++++++++++++ .../patches/0005-disable-iconv-check.patch | 13 +++++++++ 2 files changed, 41 insertions(+) create mode 100644 package/ushare/patches/0002-fix-mime-types.patch create mode 100644 package/ushare/patches/0005-disable-iconv-check.patch diff --git a/package/ushare/patches/0002-fix-mime-types.patch b/package/ushare/patches/0002-fix-mime-types.patch new file mode 100644 index 00000000..12720c83 --- /dev/null +++ b/package/ushare/patches/0002-fix-mime-types.patch @@ -0,0 +1,28 @@ +--- a/src/mime.c ++++ b/src/mime.c +@@ -54,6 +54,7 @@ + { "mpeg2", UPNP_VIDEO, "http-get:*:video/mpeg2:"}, + { "m4v", UPNP_VIDEO, "http-get:*:video/mp4:"}, + { "m4p", UPNP_VIDEO, "http-get:*:video/mp4:"}, ++ { "mp4", UPNP_VIDEO, "http-get:*:video/mp4:"}, + { "mp4ps", UPNP_VIDEO, "http-get:*:video/x-nerodigital-ps:"}, + { "ts", UPNP_VIDEO, "http-get:*:video/mpeg2:"}, + { "ogm", UPNP_VIDEO, "http-get:*:video/mpeg:"}, +@@ -80,7 +81,6 @@ + { "mp1", UPNP_AUDIO, "http-get:*:audio/mp1:"}, + { "mp2", UPNP_AUDIO, "http-get:*:audio/mp2:"}, + { "mp3", UPNP_AUDIO, "http-get:*:audio/mpeg:"}, +- { "mp4", UPNP_AUDIO, "http-get:*:audio/mp4:"}, + { "m4a", UPNP_AUDIO, "http-get:*:audio/mp4:"}, + { "ogg", UPNP_AUDIO, "http-get:*:audio/x-ogg:"}, + { "wav", UPNP_AUDIO, "http-get:*:audio/wav:"}, +@@ -145,7 +145,8 @@ + if (!mime) + return NULL; + +- sprintf (protocol, mime->mime_protocol); ++ //sprintf (protocol, mime->mime_protocol); ++ strcpy (protocol, mime->mime_protocol); + strcat (protocol, "*"); + return strdup (protocol); + } diff --git a/package/ushare/patches/0005-disable-iconv-check.patch b/package/ushare/patches/0005-disable-iconv-check.patch new file mode 100644 index 00000000..c1a49b72 --- /dev/null +++ b/package/ushare/patches/0005-disable-iconv-check.patch @@ -0,0 +1,13 @@ +--- a/configure ++++ b/configure +@@ -659,8 +659,8 @@ check_lib langinfo.h nl_langinfo "" && add_cflags -DHAVE_LANGINFO_CODESET + ################################################# + # check for iconv (optional) + ################################################# +-echolog "Checking for iconv ..." +-check_lib iconv.h iconv "" && add_cflags -DHAVE_ICONV ++#echolog "Checking for iconv ..." ++#check_lib iconv.h iconv "" && add_cflags -DHAVE_ICONV + + ################################################# + # check for libupnp and friends (mandatory)