Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02fc5e3f authored by Marco Nelissen's avatar Marco Nelissen
Browse files

GenericSource should report -1 instead of 0 for unknown duration

If the underlying source never reported a duration, GenericSource
would report a duration of 0. The right value to return is -1.

Bug: 21391417
Change-Id: Ie53045f819727b0ac79ed6719991724c069d7650
parent 92d82442
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ NuPlayer::GenericSource::GenericSource(
      mVideoLastDequeueTimeUs(0),
      mFetchSubtitleDataGeneration(0),
      mFetchTimedTextDataGeneration(0),
      mDurationUs(0ll),
      mDurationUs(-1ll),
      mAudioIsVorbis(false),
      mIsWidevine(false),
      mIsSecure(false),