Commit ab8e485
Fix multi-segment recording data loss during recovery
The recovery process sorted segment directories alphabetically,
causing segment-10 to come before segment-2. Combined with index
assignment from enumeration, this caused middle segments (2-9) to
be incorrectly processed and their video data lost.
Fixes:
- Use natural numeric sort for segment directories
- Parse segment index from folder name instead of enumeration
- Use actual segment path from metadata in create_project_config
Fixes #1509
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent c59f1b4 commit ab8e485
1 file changed
Lines changed: 15 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
140 | 145 | | |
141 | | - | |
| 146 | + | |
142 | 147 | | |
143 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
144 | 155 | | |
145 | 156 | | |
146 | 157 | | |
| |||
186 | 197 | | |
187 | 198 | | |
188 | 199 | | |
189 | | - | |
| 200 | + | |
190 | 201 | | |
191 | 202 | | |
192 | 203 | | |
| |||
899 | 910 | | |
900 | 911 | | |
901 | 912 | | |
902 | | - | |
903 | | - | |
904 | | - | |
905 | | - | |
906 | | - | |
| 913 | + | |
907 | 914 | | |
908 | 915 | | |
909 | 916 | | |
| |||
0 commit comments