typedef struct DNode
{
...
struct DNode ** nodes;
uint32_t ncount;
...
} DNode;
void DNodeRemove(DNode * node, uint32_t index)
{
if (index != (node->ncount - 1))
{
memmove(&node->nodes[index],
&node->nodes[index + 1],
(node->ncount - index - 1) * sizeof(DNode *));
}
node->ncount--;
}
Сдвигает сразу на 4 элемента Ломает память вообще непонятно по какому алгоритму:
[ 8.100][ RATATOSKR + 04] >>>
{
305 => '<status> <id>305<>Playback Audio Buffer Level<>0<>INT<>0<<>',
304 => '<status> <id>304<>Playback Video Buffer Level<>72<>INT<>0<<>',
307 => '<status> <id>307<>Playback Load Stage<>4<>INT<>0<<>',
306 => '<status> <id>306<>Playback Load State<>0<>INT<>0<<>',
309 => '<status> <id>309<>Playback Audio Delay<>0<>INT<>0<<>',
308 => '<status> <id>308<>Playback Loop Mode<>false<>BOOL<>0<<>',
310 => '<status> <id>310<>Audio Mode<>0<>INT<>0<<>',
313 => '<status> <id>313<>Playback Current CPL ID<>urn:uuid:2e1c65ee-9f12-41d9-8ad7-abd67e121f30<>STRING<>0<<>',
314 => '<status> <id>314<>Playback Current CPL Offset<>3541<>LONG<>0<<>',
317 => '<status> <id>317<>Current Playback ID<>urn:uuid:7a9ab3bd-4341-6bea-b59d-a43e035a31cf<>STRING<>0<<>',
319 => '<status> <id>319<>3D Delay Enabled<>false<>BOOL<>0<<>',
322 => '<status> <id>322<>Dolby Atmos Playback Online Status<>false<>BOOL<>0<<>',
320 => '<status> <id>320<>3D Delay Time<>0<>INT<>0<<>',
332 => '<status> <id>332<>Playback Not Married<>false<>BOOL<>0<<>',
452 => '<status> <id>452<>Scheduler Next Start Time<><>STRING<>0<<>',
330 => '<status> <id>330<>Playback Buffer Underrun Error<>false<>BOOL<>0<<>',
300 => '<status> <id>300<>Playback State<>2<>INT<>0<<>',
451 => '<status> <id>451<>Scheduler Next Content ID<><>STRING<>0<<>',
331 => '<status> <id>331<>Playback ICP Communication Error<>false<>BOOL<>0<<>',
301 => '<status> <id>301<>Loaded Content<>urn:uuid:2e1c65ee-9f12-41d9-8ad7-abd67e121f30<>STRING<>0<<>',
450 => '<status> <id>450<>Scheduler Active<>true<>BOOL<>0<<>',
302 => '<status> <id>302<>Playback Timecode<>3541<>LONG<>0<<>',
303 => '<status> <id>303<>Loaded Content Duration<>30000<>LONG<>0<<>',
},
[ 9.372][ RATATOSKR + 04] ---
{
309 => '<status> <id>309<>Playback Audio Delay<>0<>INT<>0<<>',
308 => '<status> <id>308<>Playback Loop Mode<>false<>BOOL<>0<<>',
310 => '<status> <id>310<>Audio Mode<>0<>INT<>0<<>',
313 => '<status> <id>313<>Playback Current CPL ID<>urn:uuid:2e1c65ee-9f12-41d9-8ad7-abd67e121f30<>STRING<>0<<>',
314 => '<status> <id>314<>Playback Current CPL Offset<>3541<>LONG<>0<<>',
308 => '<status> <id>308<>Playback Loop Mode<>false<>BOOL<>0<<>',
310 => '<status> <id>310<>Audio Mode<>0<>INT<>0<<>',
313 => '<status> <id>313<>Playback Current CPL ID<>urn:uuid:2e1c65ee-9f12-41d9-8ad7-abd67e121f30<>STRING<>0<<>',
314 => '<status> <id>314<>Playback Current CPL Offset<>3541<>LONG<>0<<>',
317 => '<status> <id>317<>Current Playback ID<>urn:uuid:7a9ab3bd-4341-6bea-b59d-a43e035a31cf<>STRING<>0<<>',
319 => '<status> <id>319<>3D Delay Enabled<>false<>BOOL<>0<<>',
322 => '<status> <id>322<>Dolby Atmos Playback Online Status<>false<>BOOL<>0<<>',
320 => '<status> <id>320<>3D Delay Time<>0<>INT<>0<<>',
332 => '<status> <id>332<>Playback Not Married<>false<>BOOL<>0<<>',
452 => '<status> <id>452<>Scheduler Next Start Time<><>STRING<>0<<>',
330 => '<status> <id>330<>Playback Buffer Underrun Error<>false<>BOOL<>0<<>',
300 => '<status> <id>300<>Playback State<>2<>INT<>0<<>',
451 => '<status> <id>451<>Scheduler Next Content ID<><>STRING<>0<<>',
331 => '<status> <id>331<>Playback ICP Communication Error<>false<>BOOL<>0<<>',
301 => '<status> <id>301<>Loaded Content<>urn:uuid:2e1c65ee-9f12-41d9-8ad7-abd67e121f30<>STRING<>0<<>',
450 => '<status> <id>450<>Scheduler Active<>true<>BOOL<>0<<>',
302 => '<status> <id>302<>Playback Timecode<>3541<>LONG<>0<<>',
},
[ 10.164][ RATATOSKR + 04] <<<