Commit bbb6d8f0 by ibaker Committed by Ian Baker

Use `@C.DataType` intdef in `HlsDataSourceFactory.createDataSource`

PiperOrigin-RevId: 449973324
parent 685761b0
......@@ -15,6 +15,7 @@
*/
package com.google.android.exoplayer2.source.hls;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.upstream.DataSource;
/** Default implementation of {@link HlsDataSourceFactory}. */
......@@ -30,7 +31,7 @@ public final class DefaultHlsDataSourceFactory implements HlsDataSourceFactory {
}
@Override
public DataSource createDataSource(int dataType) {
public DataSource createDataSource(@C.DataType int dataType) {
return dataSourceFactory.createDataSource();
}
}
......@@ -24,9 +24,8 @@ public interface HlsDataSourceFactory {
/**
* Creates a {@link DataSource} for the given data type.
*
* @param dataType The data type for which the {@link DataSource} will be used. One of {@link C}
* {@code .DATA_TYPE_*} constants.
* @param dataType The {@link C.DataType} for which the {@link DataSource} will be used.
* @return A {@link DataSource} for the given data type.
*/
DataSource createDataSource(int dataType);
DataSource createDataSource(@C.DataType int dataType);
}
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