~ubuntu-branches/ubuntu/precise/banshee/precise-proposed

« back to all changes in this revision

Viewing changes to src/Libraries/MusicBrainz/MusicBrainz/LocalDisc.cs

  • Committer: Package Import Robot
  • Author(s): Chow Loong Jin
  • Date: 2012-02-18 22:17:24 UTC
  • mfrom: (6.3.23 experimental)
  • Revision ID: package-import@ubuntu.com-20120218221724-cnwdvn490wjjue8t
Tags: 2.3.5-1ubuntu1
* Merge from Debian Experimental, remaining changes:
  + Enable and recommend SoundMenu and Disable NotificationArea by default
  + Disable boo and karma extensions
  + Move desktop file for Meego UI to /usr/share/une/applications
  + Change the url for the Amazon store redirector

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
 
129
129
        public static LocalDisc GetFromDevice (string device)
130
130
        {
131
 
            if (device == null) throw new ArgumentNullException ("device");
 
131
            if (device == null) {
 
132
                throw new ArgumentNullException ("device");
 
133
            }
 
134
 
132
135
            try {
133
136
                switch (Environment.OSVersion.Platform){
134
137
                case PlatformID.Unix:
135
138
                    // TODO can we actually detect the environment?
136
 
                    //try {
 
139
                    try {
137
140
                        return new DiscLinux (device);
138
 
                    //} catch {
139
 
                    //    return new DiscFreeBSD (device);
140
 
                    //}
 
141
                    } catch {
 
142
                        return new DiscFreeBsd (device);
 
143
                    }
141
144
                //case PlatformID.Win32NT:
142
145
                    //return new DiscWin32NT (device);
143
146
                default: