Commit 10a88e40 authored by Martin Finkel's avatar Martin Finkel
Browse files

Reuse existing method

parent 63741ddb
......@@ -433,10 +433,7 @@ namespace LibVLCSharp.Shared
{
if (mediaConfiguration == null) throw new ArgumentNullException(nameof(mediaConfiguration));
var options = mediaConfiguration.Build();
if (string.IsNullOrEmpty(options)) throw new ArgumentNullException(nameof(options));
Native.LibVLCMediaAddOption(NativeReference, options);
AddOption(mediaConfiguration.Build());
}
/// <summary>Add an option to the media with configurable flags.</summary>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment