Mercurial > audlegacy-plugins
comparison src/madplug/input.c @ 783:83a38bcfe7c8 trunk
[svn] - check the result of vfs_fread() strictly.
| author | yaz |
|---|---|
| date | Mon, 05 Mar 2007 00:48:01 -0800 |
| parents | 8366ad444313 |
| children | 5ddfe9eac8ee |
comparison
equal
deleted
inserted
replaced
| 782:6f519e34ddf0 | 783:83a38bcfe7c8 |
|---|---|
| 555 #endif | 555 #endif |
| 556 #endif | 556 #endif |
| 557 /* simply read to data from the file */ | 557 /* simply read to data from the file */ |
| 558 len = vfs_fread(buffer, 1, buffer_size, info->infile); //vfs_fread returns num of elements. | 558 len = vfs_fread(buffer, 1, buffer_size, info->infile); //vfs_fread returns num of elements. |
| 559 | 559 |
| 560 if(len == 0){ | 560 if(len == 0 && info->playback){ |
| 561 if(info->playback) | 561 info->playback->eof = TRUE; |
| 562 info->playback->eof = TRUE; | |
| 563 } | 562 } |
| 564 | 563 |
| 565 #ifdef DEBUG | 564 #ifdef DEBUG |
| 566 #ifdef DEBUG_INTENSIVELY | 565 #ifdef DEBUG_INTENSIVELY |
| 567 g_message ("e: input_get_data: size=%d offset=%d", len, info->offset); | 566 g_message ("e: input_get_data: size=%d offset=%d", len, info->offset); |
