Fix a minor warning.
System complains about "system" call's result being ignored.
This commit is contained in:
parent
6f4a090770
commit
0b6579e0e4
1 changed files with 5 additions and 1 deletions
|
@ -414,7 +414,11 @@ static void fgIdleFunction ( void ) {
|
|||
string command = "mpg123 " + mp3file.str() + "> /dev/null 2>&1";
|
||||
# endif
|
||||
|
||||
system ( command.c_str() );
|
||||
if (0 != system ( command.c_str() ))
|
||||
{
|
||||
SG_LOG( SG_SOUND, SG_WARN,
|
||||
"Failed to play mp3 file " << mp3file.str() << ". Maybe mp3 player is not installed." );
|
||||
}
|
||||
}
|
||||
#endif
|
||||
// This is the top level init routine which calls all the
|
||||
|
|
Loading…
Add table
Reference in a new issue