diff Plugins/Input/console/Audacious_Driver.cpp @ 1395:b7250d516b62 trunk

[svn] - revert botched patch
author nenolod
date Wed, 12 Jul 2006 08:19:01 -0700
parents 61d78065b630
children 7ca5335c205c
line wrap: on
line diff
--- a/Plugins/Input/console/Audacious_Driver.cpp	Tue Jul 11 18:02:24 2006 -0700
+++ b/Plugins/Input/console/Audacious_Driver.cpp	Wed Jul 12 08:19:01 2006 -0700
@@ -252,9 +252,10 @@
 		track_info_t* out )
 {
 	// decode length (can be in text or binary format)
-	unsigned const char s [4] = { h.len_secs [0], h.len_secs [1], h.len_secs [2], 0 };
+	char s [4] = { h.len_secs [0], h.len_secs [1], h.len_secs [2], 0 };
 	int len_secs = (unsigned char) s [1] * 0x100 + s [0];
-
+	if ( s [1] >= ' ' || (!s [1] && isdigit( s [0] )) )
+		len_secs = atoi( s );
 	if ( len_secs )
 		out->length = len_secs * 1000;