Index: main/file.c =================================================================== --- main/file.c (revision 288636) +++ main/file.c (working copy) @@ -961,10 +961,12 @@ * done this way because there is no where for ast_openstream_full to * return the file had no data. */ seekattempt = fseek(fs->f, -1, SEEK_END); - if (!seekattempt) + if (seekattempt && errno == EINVAL) { + /* Zero-length file, as opposed to a pipe */ + return 0; + } else { ast_seekstream(fs, 0, SEEK_SET); - else - return 0; + } vfs = ast_openvstream(chan, filename, preflang); if (vfs) {