Corrected status reply for unstarted fifo

This commit is contained in:
Thomas Schmitt 2007-10-07 11:03:07 +00:00
parent a63d9b11c4
commit f4fe30ec6c
2 changed files with 4 additions and 3 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2007.10.05.231712"
#define Cdrskin_timestamP "2007.10.07.110506"

View File

@ -660,13 +660,14 @@ int burn_fifo_inquire_status(struct burn_source *source,
*free_bytes = diff - 1;
else
*free_bytes = (*size - wpos) + rpos - 1;
if (fs->end_of_consumption == 1)
ret = 0;
if (fs->end_of_consumption > 0)
ret |= 4;
if (fs->input_error)
ret |= 3;
else if (fs->end_of_input)
ret |= 2;
else
else if(fs->buf != NULL)
ret |= 1;
*status_text = states[ret];
return ret;