+void
+GLVideoView::stop ()
+{
+ if (_thread) {
+ _thread->interrupt ();
+ _thread->join ();
+ }
+ delete _thread;
+ _thread = 0;
+}
+
+bool
+GLVideoView::one_shot () const
+{
+ boost::mutex::scoped_lock lm (_one_shot_mutex);
+ return _one_shot;
+}
+
+void
+GLVideoView::set_one_shot (bool s)
+{
+ boost::mutex::scoped_lock lm (_one_shot_mutex);
+ _one_shot = s;
+}
+