If not all streams are closed, don't stop GPU preview
This commit is contained in:
parent
9623deece0
commit
6601e95246
1 changed files with 5 additions and 1 deletions
|
|
@ -207,12 +207,16 @@ export default {
|
|||
},
|
||||
|
||||
previewRequest: function(state) {
|
||||
// If all streams are closed, don't start GPU preview
|
||||
var a = Object.values(this.$store.state.activeStreams);
|
||||
let allClosed = a.every(v => v === false);
|
||||
// If all streams are closed, don't start GPU preview
|
||||
if (state === true && allClosed) {
|
||||
return false;
|
||||
}
|
||||
// If not all streams are closed, don't stop GPU preview
|
||||
if (state === false && !allClosed) {
|
||||
return false;
|
||||
}
|
||||
// If requesting starting the stream, but this component is inactive, skip
|
||||
if (this.$store.getters.ready == true) {
|
||||
var requestUri = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue