Mercurial > audlegacy
diff Plugins/Input/console/Audacious_Driver.cpp @ 1405:cb985fe460cd trunk
[svn] - libconsole: added an option to ignore length information from spc tags
author | giacomo |
---|---|
date | Fri, 14 Jul 2006 14:07:10 -0700 |
parents | 7ca5335c205c |
children | eff9a84c54bf |
line wrap: on
line diff
--- a/Plugins/Input/console/Audacious_Driver.cpp Fri Jul 14 13:13:46 2006 -0700 +++ b/Plugins/Input/console/Audacious_Driver.cpp Fri Jul 14 14:07:10 2006 -0700 @@ -39,7 +39,7 @@ //typedef Vfs_File_Reader Audacious_Reader; // will use VFS once it handles gzip transparently typedef Gzip_File_Reader Audacious_Reader; -AudaciousConsoleConfig audcfg = { 180, FALSE, 32000, TRUE, 0, 0 }; +AudaciousConsoleConfig audcfg = { 180, FALSE, 32000, TRUE, 0, 0, FALSE }; static GThread* decode_thread; static GStaticMutex playback_mutex = G_STATIC_MUTEX_INIT; static int console_ip_is_going; @@ -671,6 +671,10 @@ // set info int length = -1; bool has_length = false; + + if (( type == type_spc ) && ( audcfg.ignore_spc_length == TRUE )) + info.length = -1; + char* title = end_get_info( info, &length, &has_length ); if ( title ) {