Mercurial > audlegacy-plugins
comparison src/madplug/input.c @ 789:354c69a939bc trunk
[svn] revising vfs_fread() check code.
- check vfs handle code has been restored to original position.
- accidentally removed substitution to ret has been restored.
- in audmad_is_our_fd(), check code just puts log message instead of return. please let me know if log message would be put upon proper mp3 file.
- in scan_file(), check code returns if vfs_fread() fails. this fixes open audio with bogus parameters problem.
author | yaz |
---|---|
date | Tue, 06 Mar 2007 22:08:18 -0800 |
parents | 2461b711162b |
children | 91d2b302f479 |
comparison
equal
deleted
inserted
replaced
788:2461b711162b | 789:354c69a939bc |
---|---|
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); |