/[svn]/linuxsampler/trunk/src/db/InstrumentsDb.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/db/InstrumentsDb.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1908 by persson, Mon Jun 1 18:50:06 2009 UTC revision 1910 by senoner, Fri Jun 5 14:22:20 2009 UTC
# Line 1  Line 1 
1  /***************************************************************************  /***************************************************************************
2   *                                                                         *   *                                                                         *
3   *   Copyright (C) 2007-2009 Grigor Iliev                                 *   *   Copyright (C) 2007-2009 Grigor Iliev, Benno Senoner                   *
4   *                                                                         *   *                                                                         *
5   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
6   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 89  namespace LinuxSampler { Line 89  namespace LinuxSampler {
89    
90      InstrumentsDb::InstrumentsDb() {      InstrumentsDb::InstrumentsDb() {
91          db = NULL;          db = NULL;
         DbInstrumentsMutex = Mutex();  
92          InTransaction = false;          InTransaction = false;
93      }      }
94    
# Line 1202  namespace LinuxSampler { Line 1201  namespace LinuxSampler {
1201                  throw Exception("DB error: " + ToString(sqlite3_errmsg(db)));                  throw Exception("DB error: " + ToString(sqlite3_errmsg(db)));
1202              }              }
1203    
1204              String s = toEscapedFsPath(FilePath);              String s = FilePath;
1205    
1206                #if WIN32
1207                for (int i = 0; i < s.length(); i++) {
1208                    if (s[i] == '\\') s[i] = '/';
1209                }
1210                #endif
1211    
1212                s = toEscapedFsPath(s);
1213              BindTextParam(pStmt, 2, s);              BindTextParam(pStmt, 2, s);
1214              String ver = "";              String ver = "";
1215              if (gig->pVersion != NULL) ver = ToString(gig->pVersion->major);              if (gig->pVersion != NULL) ver = ToString(gig->pVersion->major);

Legend:
Removed from v.1908  
changed lines
  Added in v.1910

  ViewVC Help
Powered by ViewVC