Commit 31194f3
committed
fix: do not bake a zero duration into metadata created mid-recording
Stamping the match id at match end creates the video metadata while
the recorder is still writing the file, and probing a fragmented mp4
before it is finalized yields no duration - the zero was cached
forever and the video was listed as corrupted. Skip the probe while
the file is the active recording, and re-probe any metadata whose
duration is still zero once the file is finished.1 parent e7d8a68 commit 31194f3
1 file changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
438 | 445 | | |
439 | 446 | | |
440 | 447 | | |
441 | 448 | | |
442 | 449 | | |
443 | 450 | | |
444 | 451 | | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
445 | 461 | | |
446 | 462 | | |
447 | 463 | | |
448 | 464 | | |
449 | 465 | | |
450 | 466 | | |
451 | 467 | | |
452 | | - | |
453 | | - | |
| 468 | + | |
454 | 469 | | |
455 | 470 | | |
456 | 471 | | |
| |||
0 commit comments