/* open and process file */
if((f = fopen(filename, "rt")))
{
- while( !feof(f) && c < (limit -1))
+ while(!feof(f) && c < limit)
{
char *s, *sp_r, *sp_b;
/* insert item */
items[c++] = item;
- };
+ }
+ else
+ g_warning("omnplay_library_load_file: ignored line [%s]\n", l);
}
fclose(f);
*pcount = c;
+ g_warning("omnplay_library_load_file: loaded [%d] items from [%s] file, limit [%d]\n", c, filename, limit);
+
return r;
};
frames2tc(item[i].in, 25.0, tc_in),
frames2tc(item[i].dur, 25.0, tc_dur),
item[i].title);
-
fclose(f);
+ g_warning("omnplay_library_save_file: written [%d] lines to file [%s]\n", count, filename);
};
};
frames2tc(item[i].dur, 25.0, tc_dur));
fclose(f);
+
+ g_warning("whois.c: save_list: filename=[%s], count=[%d]\n", filename, count);
}
else
r = 1;