# HG changeset patch # User nenolod # Date 1141240153 28800 # Node ID f3d15ea6e56b94486830bdb71ccd9e40fed85c6b # Parent f9bb836f4545845693f128c162c4a385aec532e7 [svn] - remove cyc based breaking diff -r f9bb836f4545 -r f3d15ea6e56b Plugins/Input/mpg123/mpg123.c --- a/Plugins/Input/mpg123/mpg123.c Wed Mar 01 10:39:35 2006 -0800 +++ b/Plugins/Input/mpg123/mpg123.c Wed Mar 01 11:09:13 2006 -0800 @@ -243,14 +243,13 @@ guchar buf[DET_BUF_SIZE]; int in_buf, i; gboolean ret = FALSE; - guint cyc = 0; if ((file = vfs_fopen(filename, "rb")) == NULL) return FALSE; if (vfs_fread(tmp, 1, 4, file) != 4) goto done; head = convert_to_header(tmp); - while (!mpg123_head_check(head) && ++cyc < 10) { + while (!mpg123_head_check(head)) { /* * The mpeg-stream can start anywhere in the file, * so we check the entire file