Update to new VideoDecoderRenderer API

This commit is contained in:
Iwan Timmer
2015-03-09 12:24:44 +01:00
parent 40508c2ac2
commit b1e72f9bcf
6 changed files with 51 additions and 112 deletions

View File

@@ -56,7 +56,7 @@ public class Limelight implements NvConnectionListener {
/*
* Creates a connection to the host and starts up the stream.
*/
private void startUp(StreamConfiguration streamConfig, List<String> inputs, String mappingFile, String audioDevice, boolean tests, boolean debug) {
private void startUp(StreamConfiguration streamConfig, List<String> inputs, String mappingFile, String audioDevice, boolean tests) {
if (tests) {
boolean test = true;
String vm = System.getProperties().getProperty("java.vm.name");
@@ -105,7 +105,7 @@ public class Limelight implements NvConnectionListener {
conn.start(PlatformBinding.getDeviceName(), null,
VideoDecoderRenderer.FLAG_PREFER_QUALITY,
PlatformBinding.getAudioRenderer(audioDevice),
PlatformBinding.getVideoDecoderRenderer(debug));
PlatformBinding.getVideoDecoderRenderer());
}
/*
@@ -405,7 +405,7 @@ public class Limelight implements NvConnectionListener {
if (action.equals("fake"))
limelight.startUpFake(streamConfig, video);
else
limelight.startUp(streamConfig, inputs, mapping, audio, tests, debug.intValue() <= Level.WARNING.intValue());
limelight.startUp(streamConfig, inputs, mapping, audio, tests);
} else if (action.equals("pair"))
limelight.pair();
else if (action.equals("list"))