]> git.sesse.net Git - casparcg/blobdiff - common/polling_filesystem_monitor.h
[ffmpeg] Fixed last two frames in all clips not being displayed
[casparcg] / common / polling_filesystem_monitor.h
index 35eb1b9f5f755a030353e213157754ab6992d59d..7af006aed631c08911414ceb1973445cf4b6ffc6 100644 (file)
@@ -23,6 +23,8 @@
 
 #include "filesystem_monitor.h"
 
+#include <boost/asio.hpp>
+
 namespace caspar {
 
 /**
@@ -38,11 +40,15 @@ public:
        /**
         * Constructor.
         *
+        * @param scheduler            The io_service that will be used for
+        *                             scheduling periodic scans.
         * @param scan_interval_millis The number of milliseconds between each
         *                             scheduled scan. Lower values lowers the reaction
         *                             time but causes more I/O.
         */
-       polling_filesystem_monitor_factory(int scan_interval_millis = 5000);
+       polling_filesystem_monitor_factory(
+                       std::shared_ptr<boost::asio::io_service> scheduler,
+                       int scan_interval_millis = 5000);
        virtual ~polling_filesystem_monitor_factory();
        virtual filesystem_monitor::ptr create(
                        const boost::filesystem::path& folder_to_watch,