Commits

shuerhaaken committed 32fa5fc

packaging updates; bug fix

  • Participants
  • Parent commits be84621
  • Tags 0.2.0

Comments (0)

Files changed (10)

+commit be84621edfa4d4e8abe06de3eafb3c7261fd52bc
+Author: Jörn Magens <shuerhaaken@googlemail.com>
+Date:   Tue Nov 5 15:30:11 2013 +0100
+
+    update chagelogs and NEWS
+
 commit ddafbdd06b8aa34f6396f0d37b2220a86e5b6616
 Author: Jörn Magens <shuerhaaken@googlemail.com>
 Date:   Tue Nov 5 15:13:41 2013 +0100

libtaginfo/info.cc

             break;
     }
     if(!info ) {
-        std::cout << "Could not create from: " << filename << " !" << std::endl;
+        std::cout << "LibTagInfo: Could not create from: " << filename << " !" << std::endl;
         return NULL;
     }
     if(!info->is_valid()) {
-        std::cout << "Could not create valid Info from: " << filename << " !" << std::endl;
+        std::cout << "LibTagInfo: Could not create valid Info from: " << filename << " !" << std::endl;
         if(!info->is_valid()) {
-            std::cout << "Info object from " << filename << " is not valid!" << std::endl;
+            std::cout << "LibTagInfo: Info object from " << filename << " is not valid!" << std::endl;
         }
         return NULL;
     }

libtaginfo/inforef.cc

  * Check wether the info object pointers could be created internally
  */
 bool InfoRef::is_valid() const {
-    return i == NULL || !i->is_valid();
+    return i != NULL && i->is_valid();
 }
 
 /*!

packaging/debian/debian/changelog

   * Add documentation
   * Bug fixes
 
- -- Jörn Magens <shuerhaaken@googlemail.com>  Wed, 17 Apr 2013 11:37:44 +0200
+ -- Jörn Magens <shuerhaaken@googlemail.com>  Thu, 12 Dec 2013 18:03:41 +0100

packaging/ubuntu/quantal/debian/changelog

   * Add documentation
   * Bug fixes
 
- -- Jörn Magens <shuerhaaken@googlemail.com>  Wed, 17 Apr 2013 11:37:44 +0200
+ -- Jörn Magens <shuerhaaken@googlemail.com>  Thu, 12 Dec 2013 18:03:41 +0100

packaging/ubuntu/raring/debian/changelog

   * Add documentation
   * Bug fixes
 
- -- Jörn Magens <shuerhaaken@googlemail.com>  Wed, 17 Apr 2013 11:37:44 +0200
+ -- Jörn Magens <shuerhaaken@googlemail.com>  Thu, 12 Dec 2013 18:03:41 +0100

packaging/ubuntu/saucy/debian/changelog

   * Add documentation
   * Bug fixes
 
- -- Jörn Magens <shuerhaaken@googlemail.com>  Wed, 17 Apr 2013 11:37:44 +0200
+ -- Jörn Magens <shuerhaaken@googlemail.com>  Thu, 12 Dec 2013 18:03:41 +0100

tests/basic/main.cc

 
 int main( void ) {
     InfoRef iref(TESTDIR "samples/sample.flac");
-    if(!iref.is_valid()) {
+    if(iref.is_valid()) {
         return EXIT_SUCCESS;
     }
     return EXIT_FAILURE;

tests/lyrics_aif/main.cc

 
 void set_lyrics(const String &target, const String &lyrics) {
     InfoRef iref(target);
-    if(!iref.is_valid()) {
+    if(iref.is_valid()) {
         Info * info = iref.info();
         info->set_lyrics(lyrics);
         iref.save();
 String get_lyrics(const String &target) {
     String res;
     InfoRef iref(target);
-    if(!iref.is_valid()) {
+    if(iref.is_valid()) {
         if(iref.load()) {
             Info * info = iref.info();
             res = info->get_lyrics();

tests/write_mp3/main.cc

     arlabels.append("Ärtißztá");
     arlabels.append("user label1 äiiüé");
     
-    if( !iref.is_valid() ) {
+    if( iref.is_valid() ) {
         Info * info = iref.info();
         info->set_artist("artißt");
         info->set_genre("gen re");
         iref.save();
     }
     InfoRef iref2(target);
-    if( !iref2.is_valid() ) {
+    if( iref2.is_valid() ) {
         if( iref2.load() ) {
             Info * info = iref2.info();
             //std::cout << "info->get_track_number(): " << info->get_track_number() << std::endl;