changeset 609:9b73eb35f4ff trunk

[svn] - aosd: avoid collision between playback start trigger and titlechange trigger, that occurred when the next file in playlist was played
author giacomo
date Sun, 04 Feb 2007 16:43:27 -0800
parents 621e6ec66973
children 862190d39e00
files ChangeLog src/aosd/aosd_trigger.c
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Feb 04 13:40:53 2007 -0800
+++ b/ChangeLog	Sun Feb 04 16:43:27 2007 -0800
@@ -1,3 +1,10 @@
+2007-02-04 21:40:53 +0000  Tony Vroon <chainsaw@gentoo.org>
+  revision [1302]
+  Obliterate empty tags, just like in mpg123.
+  trunk/src/vorbis/vorbis.c |    9 +++++++++
+  1 file changed, 9 insertions(+)
+
+
 2007-02-04 20:21:34 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [1300]
   - remove streaming configuration since it's no longer relevant.
--- a/src/aosd/aosd_trigger.c	Sun Feb 04 13:40:53 2007 -0800
+++ b/src/aosd/aosd_trigger.c	Sun Feb 04 16:43:27 2007 -0800
@@ -232,6 +232,10 @@
       {
         g_free(prevs->filename);
         prevs->filename = g_strdup(pl_entry->filename);
+        /* if filename changes, reset title as well */
+        if ( prevs->title != NULL )
+          g_free(prevs->title);
+        prevs->title = g_strdup(pl_entry->title);
       }
     }
     else