Mercurial > audlegacy
changeset 775:d8e406227b9a trunk
[svn] - reinstate cyc-based checks intelligently
author | nenolod |
---|---|
date | Wed, 01 Mar 2006 11:15:40 -0800 |
parents | 2d0e9b8d8403 |
children | 9f42493bdec1 |
files | Plugins/Input/mpg123/mpg123.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/Input/mpg123/mpg123.c Wed Mar 01 11:13:46 2006 -0800 +++ b/Plugins/Input/mpg123/mpg123.c Wed Mar 01 11:15:40 2006 -0800 @@ -243,6 +243,7 @@ guchar buf[DET_BUF_SIZE]; int in_buf, i; gboolean ret = FALSE; + guint cyc = 0; if ((file = vfs_fopen(filename, "rb")) == NULL) return FALSE; @@ -270,6 +271,9 @@ break; } } + + if (++cyc > 20) + goto done; } if (mpg123_decode_header(&fr, head)) { /*