Skip to content

Commit

Permalink
Bug 1610610 part 2. Remove unreachable code from MediaSource::EndOfSt…
Browse files Browse the repository at this point in the history
…ream. r=jya

There are no values of aError that are not handled by the switch.

Differential Revision: https://phabricator.services.mozilla.com/D60596
  • Loading branch information
bzbarsky committed Jan 22, 2020
1 parent 5cd63f5 commit 00210b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dom/media/mediasource/MediaSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,10 @@ void MediaSource::EndOfStream(
mDecoder->DecodeError(NS_ERROR_DOM_MEDIA_FATAL_ERR);
break;
default:
aRv.Throw(NS_ERROR_DOM_TYPE_ERR);
MOZ_ASSERT_UNREACHABLE(
"Someone added a MediaSourceReadyState value and didn't handle it "
"here");
break;
}
}

Expand Down

0 comments on commit 00210b0

Please sign in to comment.