viewer: fix regression where multiple viewers could play at once
This commit is contained in:
@@ -463,9 +463,13 @@ void ViewerWidget::PlayInternal(int speed, bool in_to_out_only)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Kindly tell all viewers to stop caching
|
// Kindly tell all viewers to stop playing (and caching if that's been set as an option)
|
||||||
if (pause_autocache_during_playback_) {
|
foreach (ViewerWidget* viewer, instances_) {
|
||||||
foreach (ViewerWidget* viewer, instances_) {
|
if (viewer != this) {
|
||||||
|
viewer->Pause();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (pause_autocache_during_playback_) {
|
||||||
viewer->auto_cacher_.ClearVideoQueue();
|
viewer->auto_cacher_.ClearVideoQueue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user