projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ca9bce
)
Unset _awaiting on a regular seek. This fixes bad behaviour in the sequence:
author
Carl Hetherington
<cth@carlh.net>
Tue, 26 Mar 2019 00:06:01 +0000
(
00:06
+0000)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 26 Mar 2019 00:06:01 +0000
(
00:06
+0000)
- some player_change; _awaiting is set
- regular seek occurs (perhaps to a time much earlier than _awaiting)
- another player_change occurs; player_change handler wrongly seeks back to _awaiting
May help with #1505.
src/lib/butler.cc
patch
|
blob
|
history
diff --git
a/src/lib/butler.cc
b/src/lib/butler.cc
index cf39945b646ddfed1ee63a5c85804795785899d8..e15cb9d3f6266f80dffc5223edfa020617e8c721 100644
(file)
--- a/
src/lib/butler.cc
+++ b/
src/lib/butler.cc
@@
-243,6
+243,7
@@
void
Butler::seek (DCPTime position, bool accurate)
{
boost::mutex::scoped_lock lm (_mutex);
+ _awaiting = optional<DCPTime>();
seek_unlocked (position, accurate);
}