patches/songbird-01-cpp-template.diff
author yippi
Tue, 07 Dec 2010 21:59:21 +0000
changeset 3062 2a7bf2823c88
permissions -rw-r--r--
2010-12-07 Brian Cameron <[email protected]> * SFEesound.spec, base-specs/esound.spec, patches/esound-01-build.diff: Added. * SFEsongbird.spec, ext-sources/nspr-nss-config, patches/songbird-01-cpp-template.diff, patches/songbird-02-taglib.diff, patches/songbird-03-remap-pixman-functions.diff, patches/songbird-05-build.diff, patches/songbird-04-startup-script.diff, patches/songbird-06-donot-delay-stopping-realplayer.diff, patches/songbird-07-xulrunner-elif.diff, patches/songbird-08-runpath.diff patches/songbird-09-system-nss-nspr.diff patches/songbird-10-moz-nss-nspr.diff patches/songbird-11-use-sun-cc.diff patches/songbird-12-using-bash.diff patches/songbird-13-type-cast.diff patches/songbird-14-check-readable-core.diff: Added. * patches/songbird-02-taglib.diff: Updated * patches/songbird-01-menu-item.diff: Removed. * SFEquick-lounge-applet.spec, base-specs/quick-lounge-applet.spec: Added. * SFEmoovida.spec, SFEmoovida-plugins.spec, base-specs/moovida.spec base-specs/moovida-plugins-good.spec, base-specs/moovida-plugins-bad.spec, patches/moovida-04-pidof.diff, patches/moovida-plugins-bad-01-rm-plugins.diff: Updated to latest from spec-files. * SFElibpigment.spec, SFElibpigment-python26.spec, base-specs/libpigment-python.spec: Added.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3062
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     1
Index: Songbird1.1/components/mediacore/gstreamer/src/sbGStreamerMediacore.cpp
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     2
===================================================================
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     3
--- Songbird1.1/components/mediacore/gstreamer/src/sbGStreamerMediacore.cpp	(revision 13119)
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     4
+++ Songbird1.1/components/mediacore/gstreamer/src/sbGStreamerMediacore.cpp	(working copy)
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     5
@@ -454,7 +454,7 @@
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     6
   /* Add each filter, followed by an audioconvert. The first-added filter ends
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     7
    * last in the pipeline, so we iterate in reverse.
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     8
    */
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     9
-  std::vector<GstElement *>::const_reverse_iterator it = mAudioFilters.rbegin(),
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    10
+  std::vector<GstElement *>::reverse_iterator it = mAudioFilters.rbegin(),
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    11
       end = mAudioFilters.rend();
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    12
   for ( ; it != end; ++it)
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    13
   {
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    14
Index: Songbird1.1/components/mediacore/base/src/sbMediacoreVotingChain.cpp
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    15
===================================================================
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    16
--- Songbird1.1/components/mediacore/base/src/sbMediacoreVotingChain.cpp	(revision 13119)
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    17
+++ Songbird1.1/components/mediacore/base/src/sbMediacoreVotingChain.cpp	(working copy)
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    18
@@ -127,8 +127,8 @@
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    19
 
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    20
   nsAutoLock lock(mLock);
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    21
 
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    22
-  votingmap_t::const_reverse_iterator cit = mResults.rbegin();
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    23
-  votingmap_t::const_reverse_iterator endCit = mResults.rend();
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    24
+  votingmap_t::reverse_iterator cit = mResults.rbegin();
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    25
+  votingmap_t::reverse_iterator endCit = mResults.rend();
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    26
 
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    27
   for(; cit != endCit; ++cit) {
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    28
     rv = mutableArray->AppendElement((*cit).second, PR_FALSE);
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    29
@@ -152,8 +152,8 @@
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    30
 
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    31
   nsAutoLock lock(mLock);
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    32
 
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    33
-  votingmap_t::const_reverse_iterator cit = mResults.rbegin();
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    34
-  votingmap_t::const_reverse_iterator endCit = mResults.rend();
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    35
+  votingmap_t::reverse_iterator cit = mResults.rbegin();
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    36
+  votingmap_t::reverse_iterator endCit = mResults.rend();
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    37
   for(; cit != endCit; ++cit) {
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    38
     if((*cit).second == aMediacore) {
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    39
       *_retval = (*cit).first;
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    40
Index: Songbird1.1/components/mediacore/manager/src/sbMediacoreShuffleSequenceGenerator.cpp
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    41
===================================================================
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    42
--- Songbird1.1/components/mediacore/manager/src/sbMediacoreShuffleSequenceGenerator.cpp	(revision 13119)
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    43
+++ Songbird1.1/components/mediacore/manager/src/sbMediacoreShuffleSequenceGenerator.cpp	(working copy)
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    44
@@ -86,10 +86,10 @@
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    45
   std::srand(std::clock());
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    46
 
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    47
   // Randomly sample the pool to populate the sequence.
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    48
-  random_shuffle(pool.begin(), pool.end());
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    49
+  std::random_shuffle(pool.begin(), pool.end());
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    50
 
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    51
   // Copy into the return array
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    52
-  copy(pool.begin(), pool.end(), *aSequence);
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    53
+  std::copy(pool.begin(), pool.end(), *aSequence);
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    54
   
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    55
   return NS_OK;
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    56
 }