From 6bb2c36f179028ac34743b2d12ba3a71cf744968 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 15 Oct 2006 21:04:00 +0000 Subject: [PATCH] Hopefully fixed problem with stdin as audio source --- trunk/libburn/libdax_audioxtr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/trunk/libburn/libdax_audioxtr.c b/trunk/libburn/libdax_audioxtr.c index 1a88a993..96c9f1ec 100644 --- a/trunk/libburn/libdax_audioxtr.c +++ b/trunk/libburn/libdax_audioxtr.c @@ -158,6 +158,9 @@ static int libdax_audioxtr_init_reading(struct libdax_audioxtr *o, int flag) int ret; /* currently this only works for MS WAVE files .wav */; + if(o->fd==0) /* stdin: hope no read came after libdax_audioxtr_identify() */ + return(1); + ret= lseek(o->fd,44,SEEK_SET); if(ret==-1) return(0);