]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a minor warning.
authorThorstenB <brehmt@gmail.com>
Thu, 12 Jan 2012 21:10:52 +0000 (22:10 +0100)
committerThorstenB <brehmt@gmail.com>
Thu, 12 Jan 2012 21:14:17 +0000 (22:14 +0100)
System complains about "system" call's result being ignored.

src/Main/main.cxx

index d6036771af883222ab7729f731727da150c3e408..b4948b259bec3ac57a88f52eec2fbdab4902b988 100644 (file)
@@ -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