Commit 22abcd5
committed
[demux] Fix audio deadlock on quality STREAMCHANGE
When a bandwidth fluctuation triggered a representation change, Kodi
Core reopened all active streams sequentially. If the first stream
(Video) evaluated to no quality change, the m_checkCoreReopen
optimization flag short-circuited all further OpenStream callbacks.
If a subsequent stream (Audio) did change quality, its Reset() and
reconstruction was skipped entirely, leaving it stuck at
EVENT_TYPE::REP_CHANGE and permanently blocking segment downloads.
This commit hoists a !isStreamChanged conditional to guard the entire
m_checkCoreReopen block, guaranteeing that a formally changed stream
bypasses the fast-path optimization and executes its native Reset()
cycle.1 parent 89de9df commit 22abcd5
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
187 | 189 | | |
188 | 190 | | |
189 | 191 | | |
190 | | - | |
| 192 | + | |
191 | 193 | | |
192 | 194 | | |
193 | 195 | | |
| |||
221 | 223 | | |
222 | 224 | | |
223 | 225 | | |
224 | | - | |
| 226 | + | |
225 | 227 | | |
226 | 228 | | |
227 | 229 | | |
| |||
0 commit comments