[oe-commits] Koen Kooi : gstreamer-ti: add patch to hardcode combo location so users don 't have to start apps from $datadir/ti/ all the time

git version control git at git.openembedded.org
Wed Jul 22 17:30:00 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 734fd70cf46ec2fb8389420b5913f3e4c5d55e93
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=734fd70cf46ec2fb8389420b5913f3e4c5d55e93

Author: Koen Kooi <koen at openembedded.org>
Date:   Wed Jul 22 19:23:16 2009 +0200

gstreamer-ti: add patch to hardcode combo location so users don't have to start apps from $datadir/ti/ all the time

---

 .../gstreamer-ti/codec_combo_directory_fix.patch   |   52 ++++++++++++++++++++
 recipes/dvsdk/gstreamer-ti_svn.bb                  |    3 +-
 2 files changed, 54 insertions(+), 1 deletions(-)

diff --git a/recipes/dvsdk/gstreamer-ti/codec_combo_directory_fix.patch b/recipes/dvsdk/gstreamer-ti/codec_combo_directory_fix.patch
new file mode 100644
index 0000000..72a0ab3
--- /dev/null
+++ b/recipes/dvsdk/gstreamer-ti/codec_combo_directory_fix.patch
@@ -0,0 +1,52 @@
+From: Vishnudas P <vishnudas at gmail.com>
+
+Found the fix here.
+http://wiki.davincidsp.com/index.php?title=Configuring_Codec_Engine_in_Arm_apps_with_createFromServer
+In the section "Advanced: overwriting fields, creating multiple engines"
+
+Needed tor reverse the previous patch 263 and apply the attached patch.
+
+When you call createFromServer the path you give is relative to
+package, not the filesystem one. For that you need to set
+"engine.server" to the desired full filesystem path.
+This is what the attached patch does.
+
+--
+
+
+diff -Naur ticodecplugin.orig/src/gstticodecplugin_dm6446.cfg ticodecplugin/src/gstticodecplugin_dm6446.cfg
+--- ticodecplugin.orig/src/gstticodecplugin_dm6446.cfg	2009-07-21 12:55:32.000000000 -0700
++++ ticodecplugin/src/gstticodecplugin_dm6446.cfg	2009-07-21 12:55:26.000000000 -0700
+@@ -38,6 +38,8 @@
+     "./encodeCombo.x64P",
+     "ti.sdo.servers.encode"
+     );
++encodeEngine.server = "/usr/share/ti-codec-combos/encodeCombo.x64P";
++decodeEngine.server = "/usr/share/ti-codec-combos/decodeCombo.x64P";
+ 
+ /* Load support for the 'Davinci Multimedia Application Interface' modules */
+ var DMAI = xdc.loadPackage('ti.sdo.dmai');
+diff -Naur ticodecplugin.orig/src/gstticodecplugin_dm6467.cfg ticodecplugin/src/gstticodecplugin_dm6467.cfg
+--- ticodecplugin.orig/src/gstticodecplugin_dm6467.cfg	2009-07-21 12:55:32.000000000 -0700
++++ ticodecplugin/src/gstticodecplugin_dm6467.cfg	2009-07-21 12:55:26.000000000 -0700
+@@ -39,6 +39,8 @@
+     "./encodeCombo.x64P",
+     "ti.sdo.servers.encode"
+     );
++encodeEngine.server = "/usr/share/ti-codec-combos/encodeCombo.x64P";
++decodeEngine.server = "/usr/share/ti-codec-combos/decodeCombo.x64P";
+ 
+ /* Load support for the 'Davinci Multimedia Application Interface' modules */
+ var DMAI = xdc.loadPackage('ti.sdo.dmai');
+diff -Naur ticodecplugin.orig/src/gstticodecplugin_omap3530.cfg ticodecplugin/src/gstticodecplugin_omap3530.cfg
+--- ticodecplugin.orig/src/gstticodecplugin_omap3530.cfg	2009-07-21 12:55:32.000000000 -0700
++++ ticodecplugin/src/gstticodecplugin_omap3530.cfg	2009-07-21 12:55:26.000000000 -0700
+@@ -38,6 +38,8 @@
+     "./decodeCombo.x64P",
+     "ti.sdo.servers.decode"
+     );
++encEngine.server = "/usr/share/ti-codec-combos/encodeCombo.x64P";
++decEngine.server = "/usr/share/ti-codec-combos/decodeCombo.x64P";
+ 
+ /* Load support for the DMAI module */
+ var DMAI = xdc.loadPackage('ti.sdo.dmai');
diff --git a/recipes/dvsdk/gstreamer-ti_svn.bb b/recipes/dvsdk/gstreamer-ti_svn.bb
index 2b080a0..e1c4c1e 100644
--- a/recipes/dvsdk/gstreamer-ti_svn.bb
+++ b/recipes/dvsdk/gstreamer-ti_svn.bb
@@ -7,10 +7,11 @@ DEPENDS = "ti-dmai gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly"
 # Fetch source from svn repo
 SRCREV = "308"
 SRC_URI = "svn://gforge.ti.com/svn/gstreamer_ti/trunk;module=gstreamer_ti;proto=https;user=anonymous;pswd='' \
+file://codec_combo_directory_fix.patch;patch=1 \
 	"
 
 # Again, no '.' in PWD allowed :(
-PR = "r23"
+PR = "r24"
 PV = "svnr${SRCREV}"
 
 S = "${WORKDIR}/gstreamer_ti/ti_build/ticodecplugin"





More information about the Openembedded-commits mailing list