rpms/audacious/F-12 audacious-2.2-AUD-99.patch, NONE, 1.1 audacious-2.2-multiple-decoders-per-ext.patch, NONE, 1.1 audacious-2.2-pkgconfig-libs.patch, NONE, 1.1 audacious-2.2-disabled-iplugins.patch, 1.3, 1.4 audacious.spec, 1.59, 1.60

Michael Schwendt mschwendt at fedoraproject.org
Sun Jan 24 07:59:31 UTC 2010


Author: mschwendt

Update of /cvs/pkgs/rpms/audacious/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv5095

Modified Files:
	audacious-2.2-disabled-iplugins.patch audacious.spec 
Added Files:
	audacious-2.2-AUD-99.patch 
	audacious-2.2-multiple-decoders-per-ext.patch 
	audacious-2.2-pkgconfig-libs.patch 
Log Message:
sync with Rawhide

audacious-2.2-AUD-99.patch:
 playback.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

--- NEW FILE audacious-2.2-AUD-99.patch ---
diff -Nur audacious-2.2-orig/src/audacious/playback.c audacious-2.2/src/audacious/playback.c
--- audacious-2.2-orig/src/audacious/playback.c	2009-11-22 23:43:47.000000000 +0100
+++ audacious-2.2/src/audacious/playback.c	2010-01-07 18:16:52.895697028 +0100
@@ -526,10 +526,12 @@
 
     if (playback_is_ready (playback))
     {
+        if (playback->start > 0)
+            time += playback->start;
         if (playback->plugin->mseek != NULL)
-            playback->plugin->mseek (playback, playback->start + time);
+            playback->plugin->mseek (playback, time);
         else if (playback->plugin->seek != NULL)
-            playback->plugin->seek (playback, (playback->start + time) / 1000);
+            playback->plugin->seek (playback, time / 1000);
 
         if (playback->end > 0)
         {

audacious-2.2-multiple-decoders-per-ext.patch:
 playlist-utils.c |   32 +++++++++++++++++++-------------
 1 file changed, 19 insertions(+), 13 deletions(-)

--- NEW FILE audacious-2.2-multiple-decoders-per-ext.patch ---
diff -Nur audacious-2.2-orig/src/audacious/playlist-utils.c audacious-2.2-multiple-decoders-per-ext/src/audacious/playlist-utils.c
--- audacious-2.2-orig/src/audacious/playlist-utils.c	2009-11-22 23:43:47.000000000 +0100
+++ audacious-2.2-multiple-decoders-per-ext/src/audacious/playlist-utils.c	2010-01-21 13:59:13.000000000 +0100
@@ -286,33 +286,39 @@
 InputPlugin * filename_find_decoder (const gchar * filename)
 {
     InputPlugin * decoder = NULL;
-    gchar * temp = g_strdup (filename);
+    gchar *temp = filename_split_subtune(filename, NULL);;
     gchar * temp2;
-    GList * * index;
+    GList **list_hdr;
 
     decoder = uri_get_plugin (temp);
 
     if (decoder != NULL)
         goto DONE;
 
-    temp2 = strrchr (temp, '?');
-
-    if (temp2 != NULL)
-        * temp2 = 0;
-
     temp2 = strrchr (temp, '.');
 
     if (temp2 == NULL)
         goto DONE;
 
     temp2 = g_ascii_strdown (temp2 + 1, -1);
-    g_free (temp);
-    temp = temp2;
-
-    index = g_hash_table_lookup (ext_hash, temp);
+    list_hdr = g_hash_table_lookup (ext_hash, temp2);
+    g_free(temp2);
 
-    if (index != NULL)
-        decoder = (* index)->data;
+    if (list_hdr != NULL) {
+        if (g_list_length(*list_hdr) > 1) {
+            ProbeResult *pr = input_check_file(temp);
+            if (pr) {
+                decoder = pr->ip;
+                g_free(pr);
+            }
+        }
+        else {
+            InputPlugin* ip = INPUT_PLUGIN((*list_hdr)->data);
+            if (ip->enabled) {
+                decoder = ip;
+            }
+        }
+    }
 
 DONE:
      g_free (temp);

audacious-2.2-pkgconfig-libs.patch:
 audacious.pc.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE audacious-2.2-pkgconfig-libs.patch ---
Don't link with libaudclient, which isn't needed by Audacious plugins
(there is a separate audclient.pc file for that!). It only creates a
superfluous dependency on libaudclient in plugins.

Do link explicitly with libaudcore, which is needed by several plugins,
which otherwise would depend on undefined symbols instead of the
libaudcore SONAME.

diff -Nur audacious-2.2-orig/audacious.pc.in audacious-2.2/audacious.pc.in
--- audacious-2.2-orig/audacious.pc.in	2009-11-22 23:43:46.000000000 +0100
+++ audacious-2.2/audacious.pc.in	2010-01-17 21:45:31.739866022 +0100
@@ -21,5 +21,5 @@
 Description: Audacious is a versatile and handy multi platform media player
 Version: @PACKAGE_VERSION@
 Requires: @PC_REQUIRES@
-Libs: -L${lib_dir} @LIBAUDCLIENT_LDFLAGS@
+Libs: -L${lib_dir} -laudcore
 Cflags: -I${audacious_include_dir}

audacious-2.2-disabled-iplugins.patch:
 playback.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: audacious-2.2-disabled-iplugins.patch
===================================================================
RCS file: /cvs/pkgs/rpms/audacious/F-12/audacious-2.2-disabled-iplugins.patch,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- audacious-2.2-disabled-iplugins.patch	31 Dec 2009 15:52:06 -0000	1.3
+++ audacious-2.2-disabled-iplugins.patch	24 Jan 2010 07:59:31 -0000	1.4
@@ -10,37 +10,3 @@ diff -Nur audacious-2.2-orig/src/audacio
      {
          ProbeResult * pr = input_check_file (filename);
  
-diff -Nur audacious-2.2-orig/src/audacious/playlist-utils.c audacious-2.2-fedora/src/audacious/playlist-utils.c
---- audacious-2.2-orig/src/audacious/playlist-utils.c	2009-11-22 23:43:47.000000000 +0100
-+++ audacious-2.2-fedora/src/audacious/playlist-utils.c	2009-12-31 14:35:14.000000000 +0100
-@@ -288,7 +288,7 @@
-     InputPlugin * decoder = NULL;
-     gchar * temp = g_strdup (filename);
-     gchar * temp2;
--    GList * * index;
-+    GList **list_hdr, *node;
- 
-     decoder = uri_get_plugin (temp);
- 
-@@ -308,11 +308,17 @@
-     temp2 = g_ascii_strdown (temp2 + 1, -1);
-     g_free (temp);
-     temp = temp2;
-+    list_hdr = g_hash_table_lookup (ext_hash, temp);
- 
--    index = g_hash_table_lookup (ext_hash, temp);
--
--    if (index != NULL)
--        decoder = (* index)->data;
-+    if (list_hdr != NULL) {
-+        for (node = *list_hdr; node != NULL; node = g_list_next(node)) {
-+            decoder = INPUT_PLUGIN(node->data);
-+            if (decoder->enabled) {
-+                break;
-+            }
-+            decoder = NULL;
-+        }
-+    }
- 
- DONE:
-      g_free (temp);


Index: audacious.spec
===================================================================
RCS file: /cvs/pkgs/rpms/audacious/F-12/audacious.spec,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -p -r1.59 -r1.60
--- audacious.spec	31 Dec 2009 13:49:26 -0000	1.59
+++ audacious.spec	24 Jan 2010 07:59:31 -0000	1.60
@@ -5,7 +5,7 @@
 
 Name: audacious
 Version: 2.2
-Release: 4%{?dist}
+Release: 7%{?dist}
 
 License: GPLv3
 Summary: GTK2 based media player similar to XMMS
@@ -13,8 +13,16 @@ URL: http://audacious-media-player.org/
 Group: Applications/Multimedia
 
 Source0: http://distfiles.atheme.org/audacious-%{version}.tgz
+
 # not submitted upstream, code section is gone in post-2.2
 Patch0: audacious-2.2-disabled-iplugins.patch
+# obsolete with version upgrade
+Patch1: audacious-2.2-AUD-99.patch
+# obsolete with version upgrade
+Patch2: audacious-2.2-pkgconfig-libs.patch
+# for a problem that is known upstream, but 2.3-alpha1 doesn't fixed it yet
+# iplugin sorting order is important, too
+Patch3: audacious-2.2-multiple-decoders-per-ext.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -73,6 +81,9 @@ Files needed when building software for 
 %setup -q -n %{name}-%{version}
 sed -i '\,^.SILENT:,d' buildsys.mk.in
 %patch0 -p1 -b .disabled-iplugins
+%patch1 -p1 -b .AUD-99
+%patch2 -p1 -b .pkgconfig-libs
+%patch3 -p1 -b .multiple-decoders
 
 # From .desktop files remove MIME types the base build of the
 # Fedora audacious-plugins package does not understand.
@@ -187,6 +198,20 @@ gtk-update-icon-cache %{_datadir}/icons/
 
 
 %changelog
+* Sat Jan 23 2010 Michael Schwendt <mschwendt at fedoraproject.org> - 2.2-7
+- Patch filename_find_decoder to probe a file if multiple decoders
+  compete with eachother to handle files with the same extension.
+  This also merges the 2nd chunk of the disabled-iplugins patch.
+
+* Sun Jan 17 2010 Michael Schwendt <mschwendt at fedoraproject.org> - 2.2-6
+- In audacious.pc link with -laudcore instead of -laudclient (AUD-125).
+  This removes a superfluous libaudclient dependency from all plugins and
+  adds a libaudcore dependency. So far, plugins that use libaudcore
+  had undefined symbols instead.
+
+* Thu Jan  7 2010 Michael Schwendt <mschwendt at fedoraproject.org> - 2.2-5
+- Apply fix for seeking to -1 milliseconds, causing a hangup (AUD-99).
+
 * Thu Dec 31 2009 Michael Schwendt <mschwendt at fedoraproject.org> - 2.2-4
 - Added another fix to the disabled-iplugins patch.
 



More information about the scm-commits mailing list