mplayer path not reading from CoreConfiguration Table on Windows

Bug #1203101 reported by Mike Rowley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenSplash
New
Undecided
Unassigned

Bug Description

MpVideoMediaElement.MPlayerBinaryPath is not being read from the CoreConfiguration table in windows, two code changes
in the function at the bottom of this message seem to work to fix the problem.

MpVideoMediaElement.cs Change

        private class PlatformProviderWindows : IPlatformProvider
        {
            private string mplayerBinaryPath = null;

            public string MPlayerBinaryPath
            {
                get
                {
                    if (mplayerBinaryPath == null)
                    {
                        string @default = Hyena.Paths.Combine(OpenSplash.Environment.Paths.ProgramFilesX86, "mplayer", "mplayer.exe");

                        mplayerBinaryPath = ServiceManager.ConfigurationService.GetValue(
                            "OpenSplash.GUI.Controls", "MpVideoMediaElement.MPlayerBinaryPath", @default);
                    }

                    return mplayerBinaryPath;
                }
            }

            public bool MPlayerInstalled
            {
                get
                {
                    return IO.File.Exists(new Uri(this.MPlayerBinaryPath));
                }
            }
        }

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.