mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-04 00:36:01 +00:00
Log decoding problems
This commit is contained in:
parent
799dae64c2
commit
e3b897e423
@ -1,5 +1,6 @@
|
|||||||
package com.limelight.binding.video;
|
package com.limelight.binding.video;
|
||||||
|
|
||||||
|
import com.limelight.LimeLog;
|
||||||
import com.limelight.nvstream.av.ByteBufferDescriptor;
|
import com.limelight.nvstream.av.ByteBufferDescriptor;
|
||||||
import com.limelight.nvstream.av.DecodeUnit;
|
import com.limelight.nvstream.av.DecodeUnit;
|
||||||
|
|
||||||
@ -28,8 +29,13 @@ public class ImxDecoderRenderer extends AbstractVideoRenderer {
|
|||||||
boolean ok = true;
|
boolean ok = true;
|
||||||
for (int i=0;i<units.size();i++) {
|
for (int i=0;i<units.size();i++) {
|
||||||
ByteBufferDescriptor bbd = units.get(i);
|
ByteBufferDescriptor bbd = units.get(i);
|
||||||
if (ok)
|
if (ok) {
|
||||||
ok = (ImxDecoder.decode(bbd.data, bbd.offset, bbd.length, i == (units.size()-1)) == 0);
|
int ret = ImxDecoder.decode(bbd.data, bbd.offset, bbd.length, i == (units.size()-1));
|
||||||
|
if (ret != 0) {
|
||||||
|
LimeLog.severe("Error code during decode: " + ret);
|
||||||
|
ok = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package com.limelight.binding.video;
|
package com.limelight.binding.video;
|
||||||
|
|
||||||
|
import com.limelight.LimeLog;
|
||||||
import com.limelight.nvstream.av.ByteBufferDescriptor;
|
import com.limelight.nvstream.av.ByteBufferDescriptor;
|
||||||
import com.limelight.nvstream.av.DecodeUnit;
|
import com.limelight.nvstream.av.DecodeUnit;
|
||||||
|
|
||||||
@ -47,8 +48,13 @@ public class OmxDecoderRenderer extends AbstractVideoRenderer {
|
|||||||
boolean ok = true;
|
boolean ok = true;
|
||||||
for (int i=0;i<units.size();i++) {
|
for (int i=0;i<units.size();i++) {
|
||||||
ByteBufferDescriptor bbd = units.get(i);
|
ByteBufferDescriptor bbd = units.get(i);
|
||||||
if (ok)
|
if (ok) {
|
||||||
ok = (OmxDecoder.decode(bbd.data, bbd.offset, bbd.length, i == (units.size()-1)) == 0);
|
int ret = ImxDecoder.decode(bbd.data, bbd.offset, bbd.length, i == (units.size()-1));
|
||||||
|
if (ret != 0) {
|
||||||
|
LimeLog.severe("Error code during decode: " + ret);
|
||||||
|
ok = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user