file existence check was inverted, resulting in a crash when trying to open on_boot...
authorArthur Wolf <wolf.arthur@gmail.com>
Mon, 30 May 2016 18:57:24 +0000 (20:57 +0200)
committerArthur Wolf <wolf.arthur@gmail.com>
Mon, 30 May 2016 18:57:24 +0000 (20:57 +0200)
src/modules/utils/player/Player.cpp

index 3a4cdf0..fc3681a 100644 (file)
@@ -212,7 +212,7 @@ bool Player::prepare_playing(){
     this->current_file_handler = fopen( this->filename.c_str(), "r");
 
     // Check whether that succeeded or not
-    bool file_opened = (this->current_file_handler == NULL);
+    bool file_opened = (this->current_file_handler != NULL);
 
     // If the file was open, get it's size
     if( file_opened ){