"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "bat/common.c" between
alsa-utils-1.2.1.tar.bz2 and alsa-utils-1.2.2.tar.bz2

About: ALSA (Advanced Linux Sound Architecture) - Utilities.

common.c  (alsa-utils-1.2.1.tar.bz2):common.c  (alsa-utils-1.2.2.tar.bz2)
skipping to change at line 234 skipping to change at line 234
int generate_input_data(struct bat *bat, void *buffer, int bytes, int frames) int generate_input_data(struct bat *bat, void *buffer, int bytes, int frames)
{ {
int err; int err;
static int load; static int load;
if (bat->playback.file != NULL) { if (bat->playback.file != NULL) {
/* From input file */ /* From input file */
load = 0; load = 0;
while (1) { while (1) {
err = fread(buffer + load, 1, bytes - load, bat->fp); err = fread((char *)buffer + load, 1, bytes - load, bat-> fp);
if (0 == err) { if (0 == err) {
if (feof(bat->fp)) { if (feof(bat->fp)) {
fprintf(bat->log, fprintf(bat->log,
_("End of playing.\n")); _("End of playing.\n"));
return 1; return 1;
} }
} else if (err < bytes - load) { } else if (err < bytes - load) {
if (ferror(bat->fp)) { if (ferror(bat->fp)) {
fprintf(bat->err, _("Read file error")); fprintf(bat->err, _("Read file error"));
fprintf(bat->err, _(": %d\n"), err); fprintf(bat->err, _(": %d\n"), err);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)