update.patch 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. diff -Naur old/src/amazon.cc new/src/amazon.cc
  2. --- old/src/amazon.cc 2008-03-05 18:31:06.000000000 -0300
  3. +++ new/src/amazon.cc 2008-03-05 18:31:06.000000000 -0300
  4. @@ -121,7 +121,7 @@
  5. {
  6. cover = RefPtr<Gdk::Pixbuf> (0);
  7. }
  8. - return cover;
  9. + return cover == RefPtr<Gdk::Pixbuf> (0);
  10. }
  11. RefPtr<Gdk::Pixbuf>
  12. diff -Naur old/src/glib-inotify.cc new/src/glib-inotify.cc
  13. --- old/src/glib-inotify.cc 2008-03-05 18:31:06.000000000 -0300
  14. +++ new/src/glib-inotify.cc 2008-03-05 18:31:06.000000000 -0300
  15. @@ -27,6 +27,7 @@
  16. #endif //HAVE_CONFIG_H
  17. #include <glibmm.h>
  18. +#include <unistd.h>
  19. #include "glib-inotify.hh"
  20. namespace Bmp
  21. diff -Naur old/src/lastfm.cc new/src/lastfm.cc
  22. --- old/src/lastfm.cc 2008-04-05 19:44:37.000000000 -0400
  23. +++ new/src/lastfm.cc 2008-04-05 19:44:37.000000000 -0400
  24. @@ -818,33 +818,33 @@
  25. TrackQueueItem const& i (m_queue[n]);
  26. - xmlNodePtr n = xmlNewChild (q, bmp, BAD_CAST N_LQM_TRACK, 0);
  27. + xmlNodePtr nd = xmlNewChild (q, bmp, BAD_CAST N_LQM_TRACK, 0);
  28. - xmlSetProp (n, BAD_CAST "mbid",
  29. + xmlSetProp (nd, BAD_CAST "mbid",
  30. BAD_CAST i.mbid.c_str());
  31. - xmlSetProp (n, BAD_CAST "artist",
  32. + xmlSetProp (nd, BAD_CAST "artist",
  33. BAD_CAST i.artist.c_str());
  34. - xmlSetProp (n, BAD_CAST "track",
  35. + xmlSetProp (nd, BAD_CAST "track",
  36. BAD_CAST i.track.c_str());
  37. - xmlSetProp (n, BAD_CAST "album",
  38. + xmlSetProp (nd, BAD_CAST "album",
  39. BAD_CAST i.album.c_str());
  40. - xmlSetProp (n, BAD_CAST "date",
  41. + xmlSetProp (nd, BAD_CAST "date",
  42. BAD_CAST (uint64_f % i.date).str().c_str());
  43. - xmlSetProp (n, BAD_CAST "length",
  44. + xmlSetProp (nd, BAD_CAST "length",
  45. BAD_CAST (uint_f % i.length).str().c_str());
  46. - xmlSetProp (n, BAD_CAST "nr",
  47. + xmlSetProp (nd, BAD_CAST "nr",
  48. BAD_CAST (uint_f % i.nr).str().c_str());
  49. - xmlSetProp (n, BAD_CAST "source",
  50. + xmlSetProp (nd, BAD_CAST "source",
  51. BAD_CAST i.source.c_str());
  52. - xmlSetProp (n, BAD_CAST "rating",
  53. + xmlSetProp (nd, BAD_CAST "rating",
  54. BAD_CAST i.rating.c_str());
  55. }
  56. diff -Naur old/src/library.cc new/src/library.cc
  57. --- old/src/library.cc 2008-03-05 18:31:06.000000000 -0300
  58. +++ new/src/library.cc 2008-03-05 18:31:06.000000000 -0300
  59. @@ -530,7 +530,7 @@
  60. gint64 length_in_nanoseconds;
  61. gst_query_parse_duration (query, &format, &length_in_nanoseconds);
  62. guint64 length = length_in_nanoseconds / GST_SECOND;
  63. - ttuple->row->insert (std::make_pair (attrinfo[ATTRIBUTE_TIME].id, Variant (length)));
  64. + ttuple->row->insert (std::make_pair (attrinfo[ATTRIBUTE_TIME].id, Bmp::DB::Variant (length)));
  65. }
  66. gst_query_unref (query);
  67. gst_element_set_state (GST_ELEMENT (element), GST_STATE_NULL);
  68. @@ -921,7 +921,7 @@
  69. }
  70. #endif //HAVE_HAL
  71. - row.insert (std::make_pair ("insert_path", Variant (string (insert_path))));
  72. + row.insert (std::make_pair ("insert_path", DB::Variant (string (insert_path))));
  73. row.insert (std::make_pair (attrinfo[ATTRIBUTE_NEW_ITEM].id, guint64 (1)));
  74. struct stat fstat;
  75. diff -Naur old/src/playbacksource.cc new/src/playbacksource.cc
  76. --- old/src/playbacksource.cc 2008-03-05 18:31:06.000000000 -0300
  77. +++ new/src/playbacksource.cc 2008-03-05 18:31:06.000000000 -0300
  78. @@ -26,7 +26,7 @@
  79. #endif //HAVE_CONFIG_H
  80. #include <exception>
  81. -#include <glib/ghash.h>
  82. +#include <glib.h>
  83. #include <glibmm/ustring.h>
  84. #include <glibmm/i18n.h>
  85. #include <sigc++/signal.h>
  86. diff -Naur old/src/ui-part-cdda.cc new/src/ui-part-cdda.cc
  87. --- old/src/ui-part-cdda.cc 2008-04-05 19:49:36.000000000 -0400
  88. +++ new/src/ui-part-cdda.cc 2008-04-05 19:49:36.000000000 -0400
  89. @@ -79,7 +79,7 @@
  90. #elif defined (HAVE_CDIO)
  91. #define NEED_STRERROR_TR
  92. - #include <cdio/cdda.h>
  93. + #include <cdio/paranoia/cdda.h>
  94. #define IS_AUDIO(d, n) cdio_cddap_track_audiop(d, n+1)
  95. #endif
  96. diff -Naur old/src/ui-part-cdda.hh new/src/ui-part-cdda.hh
  97. --- old/src/ui-part-cdda.hh 2008-03-05 18:31:06.000000000 -0300
  98. +++ new/src/ui-part-cdda.hh 2008-03-05 18:31:06.000000000 -0300
  99. @@ -209,7 +209,7 @@
  100. struct LabelT
  101. {
  102. - Gtk::Label * Album,;
  103. + Gtk::Label * Album;
  104. Gtk::Label * Artist;
  105. Gtk::Label * Date;
  106. };
  107. diff -Naur old/src/util-file.cc new/src/util-file.cc
  108. --- old/src/util-file.cc 2008-03-05 18:31:06.000000000 -0300
  109. +++ new/src/util-file.cc 2008-03-05 18:31:06.000000000 -0300
  110. @@ -270,12 +270,12 @@
  111. if (!Audio::typefind (*i, type))
  112. return false;
  113. - Library::TaglibPluginsMap::const_iterator i (plugins.find (type));
  114. + Library::TaglibPluginsMap::const_iterator itr (plugins.find (type));
  115. - if (i == plugins.end())
  116. + if (itr == plugins.end())
  117. return false;
  118. - if (!i->second->set)
  119. + if (!itr->second->set)
  120. return false;
  121. }
  122. return true;