1
0
mirror of http://mpg123.de/trunk/.git synced 2025-10-28 02:55:29 +03:00

mpg123: output errors not quiet

git-svn-id: svn://scm.orgis.org/mpg123/trunk@4643 35dc7657-300d-0410-a2e5-dc2837fedb53
This commit is contained in:
thor
2020-04-23 21:40:32 +00:00
parent 638599f163
commit abbc7ccf68

View File

@@ -319,7 +319,7 @@ static void check_fatal_output(int code)
{
if(code)
{
if(!param.quiet && out123_errcode(ao))
if(out123_errcode(ao))
error2( "out123 error %i: %s"
, out123_errcode(ao), out123_strerror(ao) );
safe_exit(code);
@@ -1202,8 +1202,7 @@ int main(int sys_argc, char ** sys_argv)
ao = out123_new();
if(!ao)
{
if(!param.quiet)
error("Failed to allocate output.");
error("Failed to allocate output.");
safe_exit(97);
}
if
@@ -1217,8 +1216,7 @@ int main(int sys_argc, char ** sys_argv)
|| out123_param_float(ao, OUT123_DEVICEBUFFER, param.device_buffer)
)
{
if(!param.quiet)
error("Error setting output parameters. Do you need a usage reminder?");
error("Error setting output parameters. Do you need a usage reminder?");
safe_exit(98);
}
check_fatal_output(out123_set_buffer(ao, param.usebuffer*1024));