[vlma-devel] commit: Set the symbol rate and the error correction in the VLM order. ( Adrien Grand )
git version control
git at videolan.org
Mon Jan 12 03:07:14 CET 2009
vlma | branch: master | Adrien Grand <jpountz at videolan.org> | Mon Jan 12 03:05:23 2009 +0100| [d4bb337e5b048f9be49d1c3c0313254b3143ef61] | committer: Adrien Grand
Set the symbol rate and the error correction in the VLM order.
> http://git.videolan.org/gitweb.cgi/vlma.git/?a=commit;h=d4bb337e5b048f9be49d1c3c0313254b3143ef61
---
.../org/videolan/vlma/model/SatProgramGroup.java | 12 ++++++++++++
.../java/org/videolan/vlma/order/OrderBuilder.java | 2 ++
2 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/vlma-api/src/main/java/org/videolan/vlma/model/SatProgramGroup.java b/vlma-api/src/main/java/org/videolan/vlma/model/SatProgramGroup.java
index 3296951..c3adb3d 100644
--- a/vlma-api/src/main/java/org/videolan/vlma/model/SatProgramGroup.java
+++ b/vlma-api/src/main/java/org/videolan/vlma/model/SatProgramGroup.java
@@ -35,6 +35,8 @@ public class SatProgramGroup extends DVBProgramGroup {
private char polarisation;
private String coverage;
+ private int symbolRate;
+ private int errorCorrection;
public SatProgramGroup() {
coverage = null;
@@ -50,6 +52,14 @@ public class SatProgramGroup extends DVBProgramGroup {
return polarisation;
}
+ public int getErrorCorrection() {
+ return errorCorrection;
+ }
+
+ public int getSymbolRate() {
+ return symbolRate;
+ }
+
@Override
protected boolean isAddable(Program program) {
if (program.getMedia() instanceof SatChannel) {
@@ -70,6 +80,8 @@ public class SatProgramGroup extends DVBProgramGroup {
coverage = channel.getCoverage();
frequency = channel.getFrequency();
polarisation = channel.getPolarisation();
+ symbolRate = channel.getSymbolRate();
+ errorCorrection = channel.getErrorCorrection();
}
return result;
}
diff --git a/vlma-core/src/main/java/org/videolan/vlma/order/OrderBuilder.java b/vlma-core/src/main/java/org/videolan/vlma/order/OrderBuilder.java
index df768f0..7350d60 100644
--- a/vlma-core/src/main/java/org/videolan/vlma/order/OrderBuilder.java
+++ b/vlma-core/src/main/java/org/videolan/vlma/order/OrderBuilder.java
@@ -97,6 +97,8 @@ public class OrderBuilder {
result.addOption("dvb-voltage=18");
break;
}
+ result.addOption("dvb-srate=" + g.getSymbolRate());
+ result.addOption("dvb-fec=" + g.getErrorCorrection());
}
Set<Integer> programs = new HashSet<Integer>();
for (Program program : group) {
More information about the vlma-devel
mailing list