summaryrefslogtreecommitdiff
path: root/multimedia/mediatomb
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2008-04-11 10:11:59 +0000
committeragc <agc@pkgsrc.org>2008-04-11 10:11:59 +0000
commitb1ef4308251aeec3b7298d40d22db4eb1b0f5bec (patch)
treea8a645775c0bdcdd043f6ffb0628ec5a8f80c778 /multimedia/mediatomb
parent9eb76dab5516ad783b9ff938c9ccca212fd67607 (diff)
downloadpkgsrc-b1ef4308251aeec3b7298d40d22db4eb1b0f5bec.tar.gz
Add two patches to recognise the "mp4" file extension as a "video/mp4"
type, which lets mp4 files be added to the database, and get presented via UPnP. There are two files because the basic mappings are specified in the config.xml file, which is generated by a C++ program, and there's a corresponding change to the mappings.xml file which is kept around as source. With thanks to Jared for the mapping information.
Diffstat (limited to 'multimedia/mediatomb')
-rw-r--r--multimedia/mediatomb/distinfo4
-rw-r--r--multimedia/mediatomb/patches/patch-af12
-rw-r--r--multimedia/mediatomb/patches/patch-ag12
3 files changed, 27 insertions, 1 deletions
diff --git a/multimedia/mediatomb/distinfo b/multimedia/mediatomb/distinfo
index c6d3316bed5..8d7e6872ff2 100644
--- a/multimedia/mediatomb/distinfo
+++ b/multimedia/mediatomb/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2008/04/10 09:09:37 agc Exp $
+$NetBSD: distinfo,v 1.3 2008/04/11 10:11:59 agc Exp $
SHA1 (mediatomb-0.11.0.tar.gz) = 1d7c86924686f9999a359ba96092aa36d30832a6
RMD160 (mediatomb-0.11.0.tar.gz) = 11c53d5757da3a689c025107331526c0486befc4
@@ -8,3 +8,5 @@ SHA1 (patch-ab) = c7ec78ca4fdae632b580487bf1451ed5f1370e82
SHA1 (patch-ac) = 801ef3895fc848103f81433b066d6ae9fddccaf9
SHA1 (patch-ad) = 6ab358d4ad7530a8337db154017024da8bf89fbf
SHA1 (patch-ae) = dd75f7fd3d2794dd53062d5710285ed96d030c5b
+SHA1 (patch-af) = ec9261d2ec645a07144f8b927fd57a50175903ca
+SHA1 (patch-ag) = 932f8f4d2764c6cb098e0e78e7476527561b198e
diff --git a/multimedia/mediatomb/patches/patch-af b/multimedia/mediatomb/patches/patch-af
new file mode 100644
index 00000000000..1eed42e7903
--- /dev/null
+++ b/multimedia/mediatomb/patches/patch-af
@@ -0,0 +1,12 @@
+$NetBSD: patch-af,v 1.1 2008/04/11 10:11:59 agc Exp $
+
+--- config/mappings.xml 2008/04/11 09:24:50 1.1
++++ config/mappings.xml 2008/04/11 09:25:38
+@@ -13,6 +13,7 @@
+ <map from="m3u" to="audio/x-mpegurl"/>
+ <map from="pls" to="audio/x-scpls"/>
+ <map from="flv" to="video/x-flv"/>
++ <map from="mp4" to="video/mp4"/>
+ </extension-mimetype>
+ <mimetype-upnpclass>
+ <map from="audio/*" to="object.item.audioItem.musicTrack"/>
diff --git a/multimedia/mediatomb/patches/patch-ag b/multimedia/mediatomb/patches/patch-ag
new file mode 100644
index 00000000000..b6360c3e235
--- /dev/null
+++ b/multimedia/mediatomb/patches/patch-ag
@@ -0,0 +1,12 @@
+$NetBSD: patch-ag,v 1.1 2008/04/11 10:11:59 agc Exp $
+
+--- src/config_manager.cc 2008/04/11 09:51:48 1.1
++++ src/config_manager.cc 2008/04/11 09:52:52
+@@ -486,6 +486,7 @@
+ Ref<Element> ext2mt(new Element(_("extension-mimetype")));
+ ext2mt->setAttribute(_("ignore-unknown"), _(DEFAULT_IGNORE_UNKNOWN_EXTENSIONS));
+ ext2mt->appendElementChild(map_from_to(_("mp3"), _("audio/mpeg")));
++ ext2mt->appendElementChild(map_from_to(_("mp4"), _("video/mp4")));
+ ext2mt->appendElementChild(map_from_to(_("ogg"), _("application/ogg")));
+ ext2mt->appendElementChild(map_from_to(_("asf"), _("video/x-ms-asf")));
+ ext2mt->appendElementChild(map_from_to(_("asx"), _("video/x-ms-asf")));