Commit a260b70c authored by Thomas Guillem's avatar Thomas Guillem

LibVLC: Media: use OMX codec only if forced

Since this vlc module is still way more unstable than MediaCodec.
parent 5ce2e396
......@@ -771,12 +771,10 @@ public class Media extends VLCObject<Media.Event> {
addOption(":network-caching=1500");
final StringBuilder sb = new StringBuilder(":codec=");
if (decoder == HWDecoderUtil.Decoder.MEDIACODEC)
if (decoder == HWDecoderUtil.Decoder.MEDIACODEC || decoder == HWDecoderUtil.Decoder.ALL)
sb.append(getMediaCodecModule()).append(",");
else if (decoder == HWDecoderUtil.Decoder.OMX)
if (force && (decoder == HWDecoderUtil.Decoder.OMX || decoder == HWDecoderUtil.Decoder.ALL))
sb.append("iomx,");
else
sb.append(getMediaCodecModule()).append(",iomx,");
sb.append("all");
addOption(sb.toString());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment