public static void Init() { switch (CConfig.VideoDecoder) { case EVideoDecoder.FFmpeg: _VideoDecoder = new CVideoDecoderFFmpeg(); break; default: _VideoDecoder = new CVideoDecoderFFmpeg(); break; } _VideoDecoder.Init(); }
public static bool Init() { if (_VideoDecoder != null) { return(false); } switch (CConfig.Config.Video.VideoDecoder) { case EVideoDecoder.FFmpeg: _VideoDecoder = new CVideoDecoderFFmpeg(); break; default: _VideoDecoder = new CVideoDecoderFFmpeg(); break; } return(_VideoDecoder.Init()); }
public static bool VdInit() { return(_VideoDecoder.Init()); }