LinuxDefaultPaths.java: tsmuxer can't be found in Linux

Discuss issues related to PS3 Media Server development (only for programmers)

LinuxDefaultPaths.java: tsmuxer can't be found in Linux

Postby smo » Sat Jul 07, 2012 5:55 pm

Hi everybody,

since this commit tsmuxer can't be found if using Linux. The reason is that the commit changes the expected directory from './linux/' to './'.

Quickfix:
Code: Select all
diff --git a/src/main/java/net/pms/configuration/LinuxDefaultPaths.java b/src/main/java/net/pms/configuration/LinuxDefaultPaths.java
index 37eb0a3..2cf4309 100644
--- a/src/main/java/net/pms/configuration/LinuxDefaultPaths.java
+++ b/src/main/java/net/pms/configuration/LinuxDefaultPaths.java
@@ -34,7 +34,7 @@ class LinuxDefaultPaths implements ProgramPaths {
 
        @Override
        public String getTsmuxerPath() {
-               return getBinaryPath("tsMuxeR");
+               return getBinaryPath("linux/tsMuxeR");
        }
 
        @Override


I'm not sure if this is a valid fix, any opinions on that?

To reproduce the problem you just have to build pms, extract the resulting distribution.tar.gz, execute PMS.sh and try remuxing a file:
Code: Select all
#/bin/bash
INSTALL_DIR=testInstallDir
VERSION=1.55.0
TAR_NAME="pms-"$VERSION"-SNAPSHOT-distribution.tar.gz"
WORKING_DIR=`pwd`
#MY_JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/

set -e

#export JAVA_HOME=$MY_JAVA_HOME

cd $WORKING_DIR/ps3mediaserver/
mvn clean package
cd $WORKING_DIR/ps3mediaserver/target/

# Delete old builds
if [ -d "$INSTALL_DIR" ]; then
  rm $INSTALL_DIR -R
fi

mkdir $INSTALL_DIR
echo Unpacking $TAR_NAME
tar xzf $TAR_NAME -C $INSTALL_DIR
cd $INSTALL_DIR/pms-$VERSION-SNAPSHOT
./PMS.sh


Cheers
smo
smo
 
Posts: 46
Joined: Thu Nov 12, 2009 12:29 pm
Location: Germany

Return to Developers

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests