mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 07:10:45 +00:00
throw exceptions on bad input
This commit is contained in:
parent
6c160ff17c
commit
ce0547abde
1 changed files with 9 additions and 0 deletions
|
|
@ -1583,6 +1583,15 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
MediaSourceInfo mediaSource,
|
||||
string requestedUrl)
|
||||
{
|
||||
if (state == null)
|
||||
{
|
||||
throw new ArgumentNullException("state");
|
||||
}
|
||||
if (mediaSource == null)
|
||||
{
|
||||
throw new ArgumentNullException("mediaSource");
|
||||
}
|
||||
|
||||
state.MediaPath = mediaSource.Path;
|
||||
state.InputProtocol = mediaSource.Protocol;
|
||||
state.InputContainer = mediaSource.Container;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue