Commit eb3829c7 by Oliver Woodman

Always show track language if we have it.

May as well. Also specifically fixes showing the language
for subtitle tracks that have application/* mime types.
parent 8e9aadc5
......@@ -454,7 +454,7 @@ public class PlayerActivity extends Activity implements SurfaceHolder.Callback,
return buildResolutionString(format) + buildBitrateString(format);
} else if (MimeTypes.isAudio(format.mimeType)) {
return buildAudioPropertyString(format) + buildBitrateString(format);
} else if (MimeTypes.isText(format.mimeType) && !TextUtils.isEmpty(format.language)) {
} else if (!TextUtils.isEmpty(format.language)) {
return format.language + buildBitrateString(format);
} else {
return "unknown" + buildBitrateString(format);
......
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 sign in to comment