swaroop: try fflush() as well as fsync().
[dcpomatic.git] / src / wx / swaroop_controls.cc
index 622e943c2015ceb52afea32bfbc5997add4dc4d9..78419a08c3b8e0ef08ca0bf017b61ebf5e71c59f 100644 (file)
@@ -167,6 +167,7 @@ SwaroopControls::viewer_position_changed ()
 
                checked_fwrite (p.c_str(), p.length(), f, Config::path("position"));
 #ifdef DCPOMATIC_LINUX
+               fflush (f);
                fsync (fileno(f));
 #endif
                fclose (f);