changeset 751:3c1e835ebd68 trunk

[svn] - only claim URLs that actually belong to us. Closes #783.
author nenolod
date Wed, 28 Feb 2007 07:29:57 -0800
parents 5d8556c9949c
children 560292f1ebb3
files ChangeLog src/console/Audacious_Driver.cxx
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Feb 28 07:01:26 2007 -0800
+++ b/ChangeLog	Wed Feb 28 07:29:57 2007 -0800
@@ -1,3 +1,11 @@
+2007-02-28 15:01:26 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [1598]
+  - handle condition where track_name is not there, but stream_name is.
+  
+  trunk/src/madplug/input.c |   14 ++++++++++++--
+  1 file changed, 12 insertions(+), 2 deletions(-)
+
+
 2007-02-28 12:38:53 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [1596]
   - vtx input plugin based on a submission from Pavel Vymetalek.
--- a/src/console/Audacious_Driver.cxx	Wed Feb 28 07:01:26 2007 -0800
+++ b/src/console/Audacious_Driver.cxx	Wed Feb 28 07:29:57 2007 -0800
@@ -102,7 +102,7 @@
 	
 	// extract track number
 	gchar* args = strchr( path, '?' ); // TODO: use strrchr()?
-	if ( args )
+	if ( args && g_ascii_isdigit( args + 1 ) )
 	{
 		*args = '\0';
 		// TODO: use func with better error reporting, and perhaps don't