File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ function ManifestUpdater() {
4545 refreshDelay ,
4646 refreshTimer ,
4747 isPaused ,
48+ isStopped ,
4849 isUpdating ,
4950 manifestLoader ,
5051 manifestModel ,
@@ -93,6 +94,7 @@ function ManifestUpdater() {
9394 refreshDelay = NaN ;
9495 isUpdating = false ;
9596 isPaused = true ;
97+ isStopped = false ;
9698 stopManifestRefreshTimer ( ) ;
9799 }
98100
@@ -116,6 +118,10 @@ function ManifestUpdater() {
116118 function startManifestRefreshTimer ( delay ) {
117119 stopManifestRefreshTimer ( ) ;
118120
121+ if ( isStopped ) {
122+ return ;
123+ }
124+
119125 if ( isNaN ( delay ) && ! isNaN ( refreshDelay ) ) {
120126 delay = refreshDelay * 1000 ;
121127 }
@@ -143,6 +149,8 @@ function ManifestUpdater() {
143149 // Stop manifest update, ignore static manifest and signal end of dynamic stream to detect end of stream
144150 if ( manifestModel . getValue ( ) && manifestModel . getValue ( ) . type === DashConstants . DYNAMIC && manifest . type === DashConstants . STATIC ) {
145151 eventBus . trigger ( Events . DYNAMIC_STREAM_COMPLETED ) ;
152+ isUpdating = false ;
153+ isStopped = true ;
146154 return ;
147155 }
148156
You can’t perform that action at this time.
0 commit comments