The Free Software Media System - Server Backend & API
throw exceptions on bad input
Luke Pulverentice0547abde8a
diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.csindex eb69a8f7bc..5eaab41104 100644--- a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs+++ b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs@@ -1583,6 +1583,15 @@ namespace MediaBrowser.Controller.MediaEncodingMediaSourceInfo 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;