Commit fa8166b
committed
src: lib: stream: sink: image_sink: Fix thumbnail cold-start timeout
Request an upstream ForceKeyUnit event before waiting for a snapshot
frame. The identity filter drops all non-keyframes (DELTA_UNIT), so
without this the appsink must wait for the encoder's next natural
keyframe which can take 8+ seconds with default key-int-max settings.
Also increase the timeout from 2s to 15s as a safety net for slow
pipelines.1 parent ce79495 commit fa8166b
1 file changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
438 | | - | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
439 | 448 | | |
440 | 449 | | |
441 | | - | |
442 | | - | |
443 | | - | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
444 | 453 | | |
445 | 454 | | |
446 | 455 | | |
| |||
0 commit comments