summaryrefslogtreecommitdiffstats
path: root/tdefile-plugins/flac/tdefile_flac.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2024-02-12 19:14:31 +0100
committerSlávek Banko <slavek.banko@axis.cz>2024-02-13 09:45:57 +0100
commit98cd7ba5a16e597e1e785c7d0169f9c0c935c81a (patch)
tree6fdaf23be611ae32789a09eb4bef40f83f4a101d /tdefile-plugins/flac/tdefile_flac.cpp
parentb71a5b9b6a73eb786afc7d967e26f03a264e0f40 (diff)
downloadtdemultimedia-98cd7ba5a16e597e1e785c7d0169f9c0c935c81a.tar.gz
tdemultimedia-98cd7ba5a16e597e1e785c7d0169f9c0c935c81a.zip
Add support for TagLib 2.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 51d998343c2742e2bcf46dd6e85c1ee21d49b17a)
Diffstat (limited to 'tdefile-plugins/flac/tdefile_flac.cpp')
-rw-r--r--tdefile-plugins/flac/tdefile_flac.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tdefile-plugins/flac/tdefile_flac.cpp b/tdefile-plugins/flac/tdefile_flac.cpp
index 808af9c9..3ee4efa2 100644
--- a/tdefile-plugins/flac/tdefile_flac.cpp
+++ b/tdefile-plugins/flac/tdefile_flac.cpp
@@ -200,7 +200,7 @@ bool KFlacPlugin::readInfo( KFileMetaInfo& info, uint what )
appendItem(techgroup, "Bitrate", properties->bitrate());
appendItem(techgroup, "Sample Rate", properties->sampleRate());
- appendItem(techgroup, "Sample Width", properties->sampleWidth());
+ appendItem(techgroup, "Sample Width", properties->bitsPerSample());
appendItem(techgroup, "Channels", properties->channels());
appendItem(techgroup, "Length", properties->length());
}
@@ -234,7 +234,7 @@ bool KFlacPlugin::writeInfo(const KFileMetaInfo& info) const
{
TagLib::File *file;
- if (!TagLib::File::isWritable(TQFile::encodeName(info.path()).data())) {
+ if (access(info.path().local8Bit().data(), R_OK|W_OK)) {
kdDebug(7034) << "can't write to " << info.path() << endl;
return false;
}