Commit 71e5b2c0 by aquilescanta Committed by Oliver Woodman

Assume TS when the HLS segment URI has no path

Issue:#4033

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=190603518
parent 5925f924
...@@ -52,6 +52,9 @@ public final class DefaultHlsExtractorFactory implements HlsExtractorFactory { ...@@ -52,6 +52,9 @@ public final class DefaultHlsExtractorFactory implements HlsExtractorFactory {
Format format, List<Format> muxedCaptionFormats, DrmInitData drmInitData, Format format, List<Format> muxedCaptionFormats, DrmInitData drmInitData,
TimestampAdjuster timestampAdjuster) { TimestampAdjuster timestampAdjuster) {
String lastPathSegment = uri.getLastPathSegment(); String lastPathSegment = uri.getLastPathSegment();
if (lastPathSegment == null) {
lastPathSegment = "";
}
boolean isPackedAudioExtractor = false; boolean isPackedAudioExtractor = false;
Extractor extractor; Extractor extractor;
if (MimeTypes.TEXT_VTT.equals(format.sampleMimeType) if (MimeTypes.TEXT_VTT.equals(format.sampleMimeType)
......
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