Skip to contentSkip to conversation

fix for gstreamer-ti looking at current directory for codec combos

PATCH In review Vishnudas P 2 participants 2 messages Jul 23, 2009 – Jul 24, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix for gstreamer-ti looking at current directory for codec combos

Hi

This patch runs againt Stable/2009 and fixes gstreamer-ti so that applications can run anywhere instead of being restricted to /usr/share/ti-codec-combos.

The changes are
- Added patch to gstreamer-ti_svn.bb for configuring combo server path.
- Reverted patch http://patchwork.openembedded.org/patch/263/

Regards
Vishnudas

recipes/dsplink/gstreamer-ti_svn.bb +2 -9
index ab705f3..d87fab8 100644
@@ -1,10 +1,11 @@
 DEPENDS = "ti-codec-engine ti-dmai gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly libid3tag liboil libmad"
 
 SRC_URI = "svn://gforge.ti.com/svn/gstreamer_ti/trunk;module=gstreamer_ti;proto=https;user=anonymous;pswd='' \
+           file://codec-combo-path-fix.patch;patch=1 \ 
           "
 SRCREV = "160"
 
-PR = "r7"
+PR = "r8"
 
 # Again, no '.' in PWD allowed :(
 PV = "0+svnr${SRCREV}"
@@ -32,14 +33,6 @@ export XDC_PLATFORM
 #GCArmv5T.cc.opts = "SEDME_CCARCH";
 #GCArmv5T.cc.$seal("opts");
 
-do_configure_prepend() {
-	for i in ${S}/src/*.cfg ; do
-		sed -i -e s:\./encodeCombo.x64P:${datadir}/ti-codec-combos/encodeCombo.x64P:g \
-	           -e s:\./decodeCombo.x64P:${datadir}/ti-codec-combos/decodeCombo.x64P:g \
-	           $i
-	done
-}
-
 do_compile_prepend() {
 	for i in $(find ${S} -name "config.bld") ; do
 		    sed -i -e s:SEDME_CCARCH:'${TARGET_CCARCH}': $i
recipes/dsplink/ti-codec-combos_3.16.bb +1 -5
index 6bab35a..c70f83e 100644
@@ -13,7 +13,7 @@ S = "${WORKDIR}/omap3530_dvsdk_combos_3_16"
 
 # Yes, the xdc stuff still breaks with a '.' in PWD
 PV = "316"
-PR = "r15"
+PR = "r16"
 
 TARGET = "all"
 
@@ -77,10 +77,6 @@ do_install () {
 do_stage () {
 	install -d ${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-codec-combos
 	cp -pPrf ${S}/* ${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-codec-combos
-	for codec in encode decode ; do
-		mkdir -p  ${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-codec-combos/packages/ti/sdo/servers/$codec/package/info/${datadir}/ti-codec-combos
-		ln -sf ${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-codec-combos/packages/ti/sdo/servers/$codec/package/info/$codec* ${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-codec-combos/packages/ti/sdo/servers/$codec/package/info/${datadir}/ti-codec-combos
-	done
 }
 
 FILES_ti-codec-combos = "${datadir}/ti-codec-combos/*"
recipes/dsplink/files/codec-combo-path-fix.patch new file +12 -0
new file mode 100755
index 0000000..eb6394a
@@ -0,0 +1,12 @@
+diff -Naur ticodecplugin.orig/src/gstticodecplugin_omap3530.cfg ticodecplugin/src/gstticodecplugin_omap3530.cfg
+--- ticodecplugin.orig/src/gstticodecplugin_omap3530.cfg	2009-07-21 12:13:43.000000000 -0700
++++ ticodecplugin/src/gstticodecplugin_omap3530.cfg	2009-07-21 12:14:16.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');