Mercurial > audlegacy
comparison Plugins/Input/mpg123/mpg123.c @ 773:f3d15ea6e56b trunk
[svn] - remove cyc based breaking
author | nenolod |
---|---|
date | Wed, 01 Mar 2006 11:09:13 -0800 |
parents | 0f0659a2d5fb |
children | d8e406227b9a |
comparison
equal
deleted
inserted
replaced
772:f9bb836f4545 | 773:f3d15ea6e56b |
---|---|
241 guint32 head; | 241 guint32 head; |
242 struct frame fr; | 242 struct frame fr; |
243 guchar buf[DET_BUF_SIZE]; | 243 guchar buf[DET_BUF_SIZE]; |
244 int in_buf, i; | 244 int in_buf, i; |
245 gboolean ret = FALSE; | 245 gboolean ret = FALSE; |
246 guint cyc = 0; | |
247 | 246 |
248 if ((file = vfs_fopen(filename, "rb")) == NULL) | 247 if ((file = vfs_fopen(filename, "rb")) == NULL) |
249 return FALSE; | 248 return FALSE; |
250 if (vfs_fread(tmp, 1, 4, file) != 4) | 249 if (vfs_fread(tmp, 1, 4, file) != 4) |
251 goto done; | 250 goto done; |
252 head = convert_to_header(tmp); | 251 head = convert_to_header(tmp); |
253 while (!mpg123_head_check(head) && ++cyc < 10) { | 252 while (!mpg123_head_check(head)) { |
254 /* | 253 /* |
255 * The mpeg-stream can start anywhere in the file, | 254 * The mpeg-stream can start anywhere in the file, |
256 * so we check the entire file | 255 * so we check the entire file |
257 * | 256 * |
258 * Incorrect! We give up past ten iterations of this | 257 * Incorrect! We give up past ten iterations of this |