Skip to content

Commit

Permalink
Refactor #6.HLS.2
Browse files Browse the repository at this point in the history
Rename HlsSampleSource2 -> HlsSampleSource.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=122418334
  • Loading branch information
ojw28 committed Jun 15, 2016
1 parent 770f2c2 commit ca49d6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import com.google.android.exoplayer.demo.ui.TrackSelectionHelper;
import com.google.android.exoplayer.drm.UnsupportedDrmException;
import com.google.android.exoplayer.extractor.ExtractorSampleSource;
import com.google.android.exoplayer.hls.HlsSampleSource2;
import com.google.android.exoplayer.hls.HlsSampleSource;
import com.google.android.exoplayer.metadata.id3.GeobFrame;
import com.google.android.exoplayer.metadata.id3.Id3Frame;
import com.google.android.exoplayer.metadata.id3.PrivFrame;
Expand Down Expand Up @@ -278,7 +278,7 @@ private SampleSource buildSource(Uri uri, String id, String provider, int type)
return new DashSampleSource(uri, dataSourceFactory, player.getBandwidthMeter(),
player.getMainHandler(), player);
case Util.TYPE_HLS:
return new HlsSampleSource2(uri, dataSourceFactory, player.getBandwidthMeter(),
return new HlsSampleSource(uri, dataSourceFactory, player.getBandwidthMeter(),
player.getMainHandler(), player);
case Util.TYPE_OTHER:
Allocator allocator = new DefaultAllocator(C.DEFAULT_BUFFER_SEGMENT_SIZE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
/**
* A {@link SampleSource} for HLS streams.
*/
public final class HlsSampleSource2 implements SampleSource {
public final class HlsSampleSource implements SampleSource {

private final ManifestFetcher<HlsPlaylist> manifestFetcher;
private final HlsTrackStreamWrapper[] trackStreamWrappers;
Expand All @@ -59,7 +59,7 @@ public final class HlsSampleSource2 implements SampleSource {
private TrackGroupArray trackGroups;
private HlsTrackStreamWrapper[] enabledTrackStreamWrappers;

public HlsSampleSource2(Uri uri, DataSourceFactory dataSourceFactory,
public HlsSampleSource(Uri uri, DataSourceFactory dataSourceFactory,
BandwidthMeter bandwidthMeter, Handler eventHandler,
ChunkTrackStreamEventListener eventListener) {
HlsPlaylistParser parser = new HlsPlaylistParser();
Expand Down

0 comments on commit ca49d6f

Please sign in to comment.