~ubuntu-branches/ubuntu/wily/kid3/wily

« back to all changes in this revision

Viewing changes to src/plugins/oggflacmetadata/oggflacmetadataplugin.cpp

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2015-05-12 18:56:41 UTC
  • mfrom: (1.1.19) (2.3.3 sid)
  • Revision ID: package-import@ubuntu.com-20150512185641-hgeys2pingwq9mwn
Tags: 3.2.1-1
* New upstream release.
  - Add new build dependency qt4-dev-tools.
* Uploading to unstable.
* Switch to DEP5 debian/copyright format.

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
 * Create a tagged file.
113
113
 *
114
114
 * @param key tagged file key
115
 
 * @param dirName directory name
116
115
 * @param fileName filename
117
116
 * @param idx model index
118
117
 * @param features optional tagged file features (TaggedFile::Feature flags)
122
121
 */
123
122
TaggedFile* OggFlacMetadataPlugin::createTaggedFile(
124
123
    const QString& key,
125
 
    const QString& dirName, const QString& fileName,
 
124
    const QString& fileName,
126
125
    const QPersistentModelIndex& idx,
127
126
    int features)
128
127
{
131
130
  if (key == OGG_KEY) {
132
131
    QString ext = fileName.right(4).toLower();
133
132
    if (ext == QLatin1String(".oga") || ext == QLatin1String(".ogg"))
134
 
      return new OggFile(dirName, fileName, idx);
 
133
      return new OggFile(idx);
135
134
  }
136
135
#endif
137
136
#ifdef HAVE_FLAC
138
137
  if (key == FLAC_KEY) {
139
138
    if (fileName.right(5).toLower() == QLatin1String(".flac"))
140
 
      return new FlacFile(dirName, fileName, idx);
 
139
      return new FlacFile(idx);
141
140
  }
142
141
#endif
143
142
  return 0;