mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-03 16:25:31 +00:00
Log decoding problems
This commit is contained in:
parent
799dae64c2
commit
e3b897e423
@ -1,5 +1,6 @@
|
||||
package com.limelight.binding.video;
|
||||
|
||||
import com.limelight.LimeLog;
|
||||
import com.limelight.nvstream.av.ByteBufferDescriptor;
|
||||
import com.limelight.nvstream.av.DecodeUnit;
|
||||
|
||||
@ -28,8 +29,13 @@ public class ImxDecoderRenderer extends AbstractVideoRenderer {
|
||||
boolean ok = true;
|
||||
for (int i=0;i<units.size();i++) {
|
||||
ByteBufferDescriptor bbd = units.get(i);
|
||||
if (ok)
|
||||
ok = (ImxDecoder.decode(bbd.data, bbd.offset, bbd.length, i == (units.size()-1)) == 0);
|
||||
if (ok) {
|
||||
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;
|
||||
|
||||
import com.limelight.LimeLog;
|
||||
import com.limelight.nvstream.av.ByteBufferDescriptor;
|
||||
import com.limelight.nvstream.av.DecodeUnit;
|
||||
|
||||
@ -47,8 +48,13 @@ public class OmxDecoderRenderer extends AbstractVideoRenderer {
|
||||
boolean ok = true;
|
||||
for (int i=0;i<units.size();i++) {
|
||||
ByteBufferDescriptor bbd = units.get(i);
|
||||
if (ok)
|
||||
ok = (OmxDecoder.decode(bbd.data, bbd.offset, bbd.length, i == (units.size()-1)) == 0);
|
||||
if (ok) {
|
||||
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