mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-27 19:24:47 +03:00
throw exceptions on bad input
This commit is contained in:
@@ -1583,6 +1583,15 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
MediaSourceInfo mediaSource,
|
MediaSourceInfo mediaSource,
|
||||||
string requestedUrl)
|
string requestedUrl)
|
||||||
{
|
{
|
||||||
|
if (state == null)
|
||||||
|
{
|
||||||
|
throw new ArgumentNullException("state");
|
||||||
|
}
|
||||||
|
if (mediaSource == null)
|
||||||
|
{
|
||||||
|
throw new ArgumentNullException("mediaSource");
|
||||||
|
}
|
||||||
|
|
||||||
state.MediaPath = mediaSource.Path;
|
state.MediaPath = mediaSource.Path;
|
||||||
state.InputProtocol = mediaSource.Protocol;
|
state.InputProtocol = mediaSource.Protocol;
|
||||||
state.InputContainer = mediaSource.Container;
|
state.InputContainer = mediaSource.Container;
|
||||||
|
|||||||
Reference in New Issue
Block a user