From f4fe30ec6cea815e3c036aac3736f1f0a27c9736 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 7 Oct 2007 11:03:07 +0000 Subject: [PATCH] Corrected status reply for unstarted fifo --- cdrskin/cdrskin_timestamp.h | 2 +- libburn/file.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index 31fc850..b32b963 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2007.10.05.231712" +#define Cdrskin_timestamP "2007.10.07.110506" diff --git a/libburn/file.c b/libburn/file.c index 2cc6991..a45a849 100644 --- a/libburn/file.c +++ b/libburn/file.c @@ -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;