Commit 678c8ce5 authored by Martin Storsjö's avatar Martin Storsjö

Try mediacodec before iomx when hw decoding is enabled

This new API should work just as well as iomx (especially when
the code gets more testing and mature), so try this one first -
the code falls back cleanly to iomx on older android versions.
Signed-off-by: Martin Storsjö's avatarMartin Storsjö <martin@martin.st>
parent 4b0c6815
......@@ -162,7 +162,7 @@ libvlc_media_t *new_media(jlong instance, JNIEnv *env, jobject thiz, jstring fil
*/
libvlc_media_add_option(p_md, ":file-caching=1500");
libvlc_media_add_option(p_md, ":network-caching=1500");
libvlc_media_add_option(p_md, ":codec=iomx,all");
libvlc_media_add_option(p_md, ":codec=mediacodec,iomx,all");
}
if (noVideo)
libvlc_media_add_option(p_md, ":no-video");
......
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