Normal
2 bugs to report1: Slight delay as others have reported.2: When I close MediaPortal, the MediaPortal.exe process keeps running in the background and I have to kill it with Task Manager. This is due to loading of mpcSubs.dll. As a test, I changed MpcSubtitles.cs to NOT import the DLL and just stubbed out empty methods as below, and then when I exit MediaPortal it exits just fine:[code] /* [DllImport("mpcSubs.dll", ExactSpelling = true)] public static extern unsafe bool SetDevice(void* device, int w, int h); [DllImport("mpcSubs.dll", ExactSpelling = true, CharSet = CharSet.Unicode)] public static extern void SetDefaultStyle([In] ref SubtitleStyle style); [DllImport("mpcSubs.dll", ExactSpelling = true, CharSet = CharSet.Unicode)] public static extern bool LoadSubtitles(string filename, IGraphBuilder graphBuilder); [DllImport("mpcSubs.dll", ExactSpelling = true)] public static extern int GetCount(); [DllImport("mpcSubs.dll", ExactSpelling = true)] [return: MarshalAs(UnmanagedType.BStr)] public static extern string GetLanguage(int i); [DllImport("mpcSubs.dll", ExactSpelling = true)] public static extern int GetCurrent(); [DllImport("mpcSubs.dll", ExactSpelling = true)] public static extern void SetCurrent(int current); [DllImport("mpcSubs.dll", ExactSpelling = true)] public static extern bool GetEnable(); [DllImport("mpcSubs.dll", ExactSpelling = true)] public static extern void SetEnable(bool enable); [DllImport("mpcSubs.dll", ExactSpelling = true)] public static extern void Render(); [DllImport("mpcSubs.dll", ExactSpelling = true)] public static extern void FreeSubtitles(); */ public static unsafe bool SetDevice(void* device, int w, int h) { return true; } public static void SetDefaultStyle([In] ref SubtitleStyle style) { } public static bool LoadSubtitles(string filename, IGraphBuilder graphBuilder) { return true; } public static int GetCount() { return 1; } public static string GetLanguage(int i) { return "English"; } public static int GetCurrent() { return 1; } public static void SetCurrent(int current) { } public static bool GetEnable() { return true; } public static void SetEnable(bool enable) { } public static void Render() { } public static void FreeSubtitles() { }[/code]
2 bugs to report
1: Slight delay as others have reported.
2: When I close MediaPortal, the MediaPortal.exe process keeps running in the background and I have to kill it with Task Manager. This is due to loading of mpcSubs.dll. As a test, I changed MpcSubtitles.cs to NOT import the DLL and just stubbed out empty methods as below, and then when I exit MediaPortal it exits just fine:
[code]
/*
[DllImport("mpcSubs.dll", ExactSpelling = true)]
public static extern unsafe bool SetDevice(void* device, int w, int h);
[DllImport("mpcSubs.dll", ExactSpelling = true, CharSet = CharSet.Unicode)]
public static extern void SetDefaultStyle([In] ref SubtitleStyle style);
public static extern bool LoadSubtitles(string filename, IGraphBuilder graphBuilder);
public static extern int GetCount();
[return: MarshalAs(UnmanagedType.BStr)]
public static extern string GetLanguage(int i);
public static extern int GetCurrent();
public static extern void SetCurrent(int current);
public static extern bool GetEnable();
public static extern void SetEnable(bool enable);
public static extern void Render();
public static extern void FreeSubtitles();
*/
public static unsafe bool SetDevice(void* device, int w, int h) { return true; }
public static void SetDefaultStyle([In] ref SubtitleStyle style) { }
public static bool LoadSubtitles(string filename, IGraphBuilder graphBuilder) { return true; }
public static int GetCount() { return 1; }
public static string GetLanguage(int i) { return "English"; }
public static int GetCurrent() { return 1; }
public static void SetCurrent(int current) { }
public static bool GetEnable() { return true; }
public static void SetEnable(bool enable) { }
public static void Render() { }
public static void FreeSubtitles() { }[/code]