rpms/audacious-plugins/devel audacious-plugins-2.2-alarm.patch, NONE, 1.1 audacious-plugins.spec, 1.71, 1.72

Michael Schwendt mschwendt at fedoraproject.org
Wed Dec 30 21:50:15 UTC 2009


Author: mschwendt

Update of /cvs/pkgs/rpms/audacious-plugins/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv8100

Modified Files:
	audacious-plugins.spec 
Added Files:
	audacious-plugins-2.2-alarm.patch 
Log Message:
* Wed Dec 30 2009 Michael Schwendt <mschwendt at fedoraproject.org> - 2.2-6
- Fix the alarm plugin.


audacious-plugins-2.2-alarm.patch:
 alarm.c |   11 +++++++++++
 1 file changed, 11 insertions(+)

--- NEW FILE audacious-plugins-2.2-alarm.patch ---
diff -Nur audacious-plugins-2.2-orig/src/alarm/alarm.c audacious-plugins-2.2/src/alarm/alarm.c
--- audacious-plugins-2.2-orig/src/alarm/alarm.c	2009-11-22 23:49:52.000000000 +0100
+++ audacious-plugins-2.2/src/alarm/alarm.c	2009-12-30 22:38:17.985756827 +0100
@@ -321,14 +321,17 @@
    if(!aud_cfg_db_get_int(conf, "alarm", "fading", &fading))
      fading = DEFAULT_FADING;
 
+   g_free(cmdstr);
    if(!aud_cfg_db_get_string(conf, "alarm", "cmdstr", &cmdstr))
      cmdstr = g_strdup("");
    if(!aud_cfg_db_get_bool(conf, "alarm", "cmd_on", &cmd_on))
      cmd_on = FALSE;
 
+   g_free(playlist);
    if(!aud_cfg_db_get_string(conf, "alarm", "playlist", &playlist))
      playlist = g_strdup("");
 
+   g_free(alarm_conf.reminder_msg);
    if(!aud_cfg_db_get_string(conf, "alarm", "reminder_msg", &alarm_conf.reminder_msg))
      alarm_conf.reminder_msg = g_strdup("");
    if(!aud_cfg_db_get_bool(conf, "alarm", "reminder_on", &alarm_conf.reminder_on))
@@ -970,6 +973,7 @@
 {
    DEBUG("alarm_init\n");
 
+   alarm_conf.reminder_msg = NULL;
    alarm_read_config();
 
    /* start the main thread running */
@@ -989,6 +993,13 @@
    if(stop_tid)
      pthread_cancel(stop_tid);
    stop_tid = 0;
+
+   g_free(alarm_conf.reminder_msg);
+   alarm_conf.reminder_msg = NULL;
+   g_free(playlist);
+   playlist = NULL;
+   g_free(cmdstr);
+   cmdstr = NULL;
 }
 
 static GeneralPlugin alarm_plugin =


Index: audacious-plugins.spec
===================================================================
RCS file: /cvs/pkgs/rpms/audacious-plugins/devel/audacious-plugins.spec,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -p -r1.71 -r1.72
--- audacious-plugins.spec	30 Dec 2009 15:10:07 -0000	1.71
+++ audacious-plugins.spec	30 Dec 2009 21:50:15 -0000	1.72
@@ -5,7 +5,7 @@
 
 Name: audacious-plugins
 Version: 2.2
-Release: 5%{?dist}
+Release: 6%{?dist}
 Summary: Plugins for the Audacious media player
 Group: Applications/Multimedia
 URL: http://audacious-media-player.org/
@@ -27,10 +27,12 @@ Patch0: audacious-plugins-2.0.1-xmms-ski
 Patch1: audacious-plugins-2.2-jack.patch
 #
 Patch2: audacious-plugins-2.2-neon-request.patch
-# submitted upstream
+# merged upstream
 Patch3: audacious-plugins-2.2-cfg_db_close.patch
-# submitted upstream
+# merged upstream
 Patch4: audacious-plugins-2.2-bluetooth.patch
+# merged upstream
+Patch5: audacious-plugins-2.2-alarm.patch
 
 BuildRequires: audacious-devel >= %{aud_ver}
 BuildRequires: jack-audio-connection-kit-devel libsamplerate-devel
@@ -166,6 +168,7 @@ in Vortex (.vtx) format.
 %patch2 -p1 -b .neon-request
 %patch3 -p1 -b .cfg_db_close
 %patch4 -p1 -b .bluetooth
+%patch5 -p1 -b .alarm
 
 sed -i '\,^.SILENT:,d' buildsys.mk.in
 
@@ -259,6 +262,9 @@ update-desktop-database &> /dev/null || 
 
 
 %changelog
+* Wed Dec 30 2009 Michael Schwendt <mschwendt at fedoraproject.org> - 2.2-6
+- Fix the alarm plugin.
+
 * Fri Dec 25 2009 Michael Schwendt <mschwendt at fedoraproject.org> - 2.2-5
 - Remove BR libtimidity-devel as that plugin is no longer available.
 




More information about the fedora-extras-commits mailing list