Clear out _next_time when seeking, so out-of-date values don't
[dcpomatic.git] / src / lib / hints.cc
index 9cc10d7353b7f67842a0b348e0520249d0dd6e1e..34a7a8392f513299adf450b385f7b4b4fafa65fc 100644 (file)
@@ -50,6 +50,9 @@ using boost::weak_ptr;
 using boost::optional;
 using boost::bind;
 using namespace dcpomatic;
+#if BOOST_VERSION >= 106100
+using namespace boost::placeholders;
+#endif
 
 Hints::Hints (weak_ptr<const Film> film)
        : _film (film)
@@ -69,17 +72,13 @@ Hints::start ()
 
 Hints::~Hints ()
 {
-       if (!_thread.joinable()) {
-               return;
-       }
+       boost::this_thread::disable_interruption dis;
 
        try {
                _stop = true;
                _thread.interrupt ();
                _thread.join ();
-       } catch (...) {
-
-       }
+       } catch (...) {}
 }
 
 void