summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/butler.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/butler.cc b/src/lib/butler.cc
index 623a17c2f..5a40af128 100644
--- a/src/lib/butler.cc
+++ b/src/lib/butler.cc
@@ -211,12 +211,10 @@ Butler::prepare (weak_ptr<PlayerVideo> weak_video) const
void
Butler::video (shared_ptr<PlayerVideo> video, DCPTime time)
{
- {
- boost::mutex::scoped_lock lm (_mutex);
- if (_pending_seek_position) {
- /* Don't store any video while a seek is pending */
- return;
- }
+ boost::mutex::scoped_lock lm (_mutex);
+ if (_pending_seek_position) {
+ /* Don't store any video while a seek is pending */
+ return;
}
_prepare_service.post (bind (&Butler::prepare, this, weak_ptr<PlayerVideo>(video)));