1. 27 Jun, 2022 1 commit
  2. 23 Jun, 2022 1 commit
  3. 21 Jun, 2022 1 commit
    • Clear pending doSomeWork messages when sleeping for offload · de78cfa3
      The offload sleeping stops as soon as a new DO_SOME_WORK message
      is handled (because this indicates an expected change in rendering
      and we want to stop sleeping until we know it's safe to do so).
      
      Every exit path from doSomeWork needs to clear other pending
      DO_SOME_WORK messages as these requests have already been handled by
      the current method invocation. This currently doesn't happen from the
      offload sleeping return path and a previously queued DO_SOME_WORK
      message can immediately wake up the rendering loop again.
      
      Fix this by moving the message removal to the beginning of the
      doSomeWork method (as it prevents forgetting it in one of the
      exit paths later).
      
      PiperOrigin-RevId: 456259715
      (cherry picked from commit 251389d7)
      tonihei committed
  4. 20 Jun, 2022 1 commit
  5. 16 Jun, 2022 1 commit
  6. 15 Jun, 2022 2 commits
  7. 10 Jun, 2022 1 commit
  8. 07 Jun, 2022 1 commit
  9. 17 Jun, 2022 2 commits
  10. 16 Jun, 2022 6 commits
  11. 15 Jun, 2022 7 commits
  12. 14 Jun, 2022 2 commits
  13. 13 Jun, 2022 2 commits
    • Use correct placeholder PlayerID value in test · c1f1eb78
      The default constructor is only allowed to be called on
      API < 32 and the test should use the defined UNSET constant
      to be API independent.
      
      #minor-release
      
      PiperOrigin-RevId: 454568893
      (cherry picked from commit 0ed53215)
      tonihei committed
    • Ensure `DRAIN_ACTION_FLUSH_AND_UPDATE_DRM_SESSION` is always executed · 31e6ba9c
      `codecDrainAction` is set to `DRAIN_ACTION_NONE` in 3 places in
      `MediaCodecRenderer`:
      * The constructor (so there's no prior state to worry about)
      * `updateDrmSessionV23()`: Where `mediaCrypto` is reconfigured based
        on `sourceDrmSession` and `codecDrmSession` is also updated to
        `sourceDrmSession`.
      * `resetCodecStateForFlush()`: Where (before this change) the action
        is unconditionally set back to `DRAIN_ACTION_NONE` and so any
        required updated implied by
        `DRAIN_ACTION_FLUSH_AND_UPDATE_DRM_SESSION` is not done.
      
      This change ensures that `flushOrReleaseCodec()` handles
      `DRAIN_ACTION_FLUSH_AND_UPDATE_DRM_SESSION` before calling .
      
      This probably also resolves Issue: google/ExoPlayer#10274
      
      #minor-release
      
      PiperOrigin-RevId: 454114428
      (cherry picked from commit c736a72c)
      ibaker committed
  14. 09 Jun, 2022 8 commits
  15. 07 Jun, 2022 4 commits
    • Use a shared `keyForField` implementation in track selection parameters · 5030145c
      The current setup with distinct, private `keyForField` implementations,
      leaves open the (theoretical) possibility of a clash in the `Bundle`
      keys used by the superclass and subclass. This change brings
      consistency with our only other extensible `Bundleable` type
      (`PlaybackException`).
      
      #minor-release
      
      PiperOrigin-RevId: 453385875
      (cherry picked from commit a056f08a)
      ibaker committed
    • Rename `DefaultTrackSelector.ParametersBuilder` to `Parameters.Builder` · dd27a9a8
      We generally nest the `Builder` for `Foo` inside `Foo`. In this case,
      there's already a `DefaultTrackSelector.Parameters.Builder` type visible
      to a developer, it just happens to be the 'common'
      `TrackSelectorParameters.Builder`, so using it is a bit weird. For
      example this code snippet doesn't compile because
      `DefaultTrackSelector.Parameters.Builder#build()` returns
      `TrackSelectionParameters`. This CL fixes that problem and the code
      snippet now compiles.
      
      ```java
      DefaultTrackSelector.Parameters params =
         new DefaultTrackSelector.Parameters.Builder(context).build()
      ```
      
      #minor-release
      
      PiperOrigin-RevId: 453215702
      (cherry picked from commit 88162238)
      ibaker committed
    • Filter bogus AndroidX Media jar file when creating javadoc · aadd0c87
      #minor-release
      
      PiperOrigin-RevId: 452282128
      (cherry picked from commit 2441bc69)
      bachinger committed
    • Fix `HiddenTypedefConstant` Metalava error on `PlaybackException` · c107b949
      This is done by removing the `@FieldNumber` IntDef completely. It's not
      really adding much value anyway, because it's `open` so there's no real
      enforcement to prevent passing 'incorrect' values.
      
      #minor-release
      
      PiperOrigin-RevId: 452108972
      (cherry picked from commit 97210b5a)
      ibaker committed