Browse Source

- ushare: add patches

master
vanhofen 3 years ago
parent
commit
961650c21f
  1. 28
      package/ushare/patches/0002-fix-mime-types.patch
  2. 13
      package/ushare/patches/0005-disable-iconv-check.patch

28
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);
}

13
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)
Loading…
Cancel
Save