Optimize try/catch

This commit is contained in:
_aLfa_ 2014-09-14 16:51:01 +02:00
parent 595db02db8
commit 65f3f324b8

View File

@ -253,16 +253,11 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
{
get
{
LibVlcDynamic vlc = new LibVlcDynamic();
try
using (var vlc = new LibVlcDynamic())
{
vlc.Initialize(null, null, null, null);
return vlc.IsAllMethodsLoaded();
}
finally
{
vlc.Dispose();
}
}
}