Skip to content

Commit

Permalink
Delete broken PriorityHandlerThread class
Browse files Browse the repository at this point in the history
This class is unnecessary; you can simply pass a thread
priority to HandlerThread's own constructor. It's also
broken, since HandlerThread.run() immediately overrides
the priority being set!

-------------
Created by MOE: https:/google/moe
MOE_MIGRATED_REVID=153461225
  • Loading branch information
ojw28 committed Apr 18, 2017
1 parent 3c49044 commit ecb62cc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import com.google.android.exoplayer2.trackselection.TrackSelectorResult;
import com.google.android.exoplayer2.util.Assertions;
import com.google.android.exoplayer2.util.MediaClock;
import com.google.android.exoplayer2.util.PriorityHandlerThread;
import com.google.android.exoplayer2.util.StandaloneMediaClock;
import com.google.android.exoplayer2.util.TraceUtil;
import java.io.IOException;
Expand Down Expand Up @@ -196,7 +195,7 @@ public ExoPlayerImplInternal(Renderer[] renderers, TrackSelector trackSelector,

// Note: The documentation for Process.THREAD_PRIORITY_AUDIO that states "Applications can
// not normally change to this priority" is incorrect.
internalPlaybackThread = new PriorityHandlerThread("ExoPlayerImplInternal:Handler",
internalPlaybackThread = new HandlerThread("ExoPlayerImplInternal:Handler",
Process.THREAD_PRIORITY_AUDIO);
internalPlaybackThread.start();
handler = new Handler(internalPlaybackThread.getLooper(), this);
Expand Down

This file was deleted.

0 comments on commit ecb62cc

Please sign in to comment.