Skip to content
Snippets Groups Projects
Commit 6167f4f3 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Disable subs for TS from any source

(cherry picked from commit 0502fcfd)
parent 33415daa
No related branches found
No related tags found
No related merge requests found
......@@ -3313,10 +3313,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
private boolean enableSubs = true;
private void enableSubs() {
if (mUri == null) return;
if (mUri.getScheme() == null || !mUri.getScheme().startsWith("http")) {
enableSubs = true;
} else {
if (mUri != null) {
final String lastPath = mUri.getLastPathSegment();
enableSubs = !TextUtils.isEmpty(lastPath) && !lastPath.endsWith(".ts") && !lastPath.endsWith(".m2ts")
&& !lastPath.endsWith(".TS") && !lastPath.endsWith(".M2TS");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment