mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-24 04:41:37 +00:00
check return values in mpg123 test
This commit is contained in:
parent
1c73506009
commit
a96be34437
1 changed files with 17 additions and 2 deletions
|
@ -2,10 +2,25 @@
|
|||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
mpg123_init();
|
||||
if (mpg123_init() != MPG123_OK)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
mpg123_handle* mh = mpg123_new(NULL, NULL);
|
||||
mpg123_param(mh, MPG123_VERBOSE, 1, 0.);
|
||||
|
||||
if (mh == nullptr)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (mpg123_param(mh, MPG123_VERBOSE, 1, 0.) != MPG123_OK)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
mpg123_delete(mh);
|
||||
mpg123_exit();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue