ref: 5bd7aba6c9bf367d1200f17caa67915411b018ee
parent: dbe3e7061437f6e8e10fb0f00d49e52bad3d632a
author: robs <robs>
date: Mon Nov 27 09:37:54 EST 2006
Stop crash when auto is used as file extension
--- a/src/auto.c
+++ b/src/auto.c
@@ -190,7 +190,7 @@
}
free(ft->filetype);
ft->filetype = strdup(type);
- rc = st_gettype(ft); /* Change ft->h to the new format */
+ rc = st_gettype(ft, true); /* Change ft->h to the new format */
if(rc != ST_SUCCESS)
{
st_fail_errno(ft,ST_EFMT,"Do not understand format type: %s",type);
@@ -197,7 +197,7 @@
return (rc);
}
- st_report("Detected file format type: %s", type);
+ st_debug("Detected file format type: %s", type);
return ((* ft->h->startread)(ft));
}
@@ -215,7 +215,7 @@
static st_format_t st_auto_format = {
autonames,
NULL,
- ST_FILE_STEREO,
+ ST_FILE_STEREO | ST_FILE_NOFEXT,
st_autostartread,
st_format_nothing_read_io,
st_format_nothing,