diff options
author | Michael Landin <mich@FreeBSD.org> | 2006-09-04 12:25:55 +0000 |
---|---|---|
committer | Michael Landin <mich@FreeBSD.org> | 2006-09-04 12:25:55 +0000 |
commit | 576597140f17e9672f353ba0be5eb746e5e2d31c (patch) | |
tree | 4f85e907bc7ac8ba5a01f7f76d30f42d49c960bb /audio/amarok-kde4/files/patch-amarok_src_collectiondb.cpp | |
parent | o add fsf_suffix (-gnat-gcc34) to MAN7 names to avoid conflicts with (diff) |
- update to -> 1.4.2
- distfiles now lives at Ktown
- We now support libtunepimp-0.5
- add 1.4.2-patchset1 from author(s); fixing collectionscanner restart
and audio-cd playback
Notes
Notes:
svn path=/head/; revision=172175
Diffstat (limited to 'audio/amarok-kde4/files/patch-amarok_src_collectiondb.cpp')
-rw-r--r-- | audio/amarok-kde4/files/patch-amarok_src_collectiondb.cpp | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/audio/amarok-kde4/files/patch-amarok_src_collectiondb.cpp b/audio/amarok-kde4/files/patch-amarok_src_collectiondb.cpp new file mode 100644 index 000000000000..81649997cb8f --- /dev/null +++ b/audio/amarok-kde4/files/patch-amarok_src_collectiondb.cpp @@ -0,0 +1,70 @@ + +$FreeBSD$ + +--- amarok/src/collectiondb.cpp.orig ++++ amarok/src/collectiondb.cpp +@@ -3447,28 +3447,6 @@ + bundle->copyFrom( peb ); + valid = true; + } +- else if( bundle->url().protocol() == "audiocd" || bundle->url().protocol() == "cdda" ) +- { +- // try to see if the engine has some info about the +- // item (the intended behaviour should be that if the +- // item is an AudioCD track, the engine can return +- // CDDB data for it) +- Engine::SimpleMetaBundle smb; +- if ( EngineController::engine()->metaDataForUrl( bundle->url(), smb ) ) +- { +- valid = true; +- bundle->setTitle( smb.title ); +- bundle->setArtist( smb.artist ); +- bundle->setAlbum( smb.album ); +- bundle->setComment( smb.comment ); +- bundle->setGenre( smb.genre ); +- bundle->setBitrate( smb.bitrate.toInt() ); +- bundle->setSampleRate( smb.samplerate.toInt() ); +- bundle->setLength( smb.length.toInt() ); +- bundle->setYear( smb.year.toInt() ); +- bundle->setTrack( smb.tracknr.toInt() ); +- } +- } + } + + return valid; +@@ -5745,7 +5723,8 @@ + { + + QStringList values; +- int error, rc; ++ int error; ++ int rc = 0; + const char* tail; + sqlite3_stmt* stmt; + int busyCnt = 0; +@@ -5771,6 +5750,7 @@ + Debug::error() << sqlite3_errmsg( m_db ) << endl; + Debug::error() << "on query: " << statement << endl; + values = QStringList(); ++ break; + } + else + { +@@ -5835,7 +5815,8 @@ + + int SqliteConnection::insert( const QString& statement, const QString& /* table */ ) + { +- int error, rc; ++ int error; ++ int rc = 0; + const char* tail; + sqlite3_stmt* stmt; + int busyCnt = 0; +@@ -5860,6 +5841,7 @@ + Debug::error() << k_funcinfo << " sqlite3_compile error:" << endl; + Debug::error() << sqlite3_errmsg( m_db ) << endl; + Debug::error() << "on insert: " << statement << endl; ++ break; + } + else + { |