Use delta per stream in ovnidump

This commit is contained in:
Rodrigo Arias 2023-03-16 17:02:45 +01:00 committed by Rodrigo Arias Mallo
parent 35de33e0f9
commit e287087d3b
3 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,7 @@ emit(struct player *player)
struct stream *stream = player_stream(player);
/* Use raw clock in the ovni event */
int64_t rel = ev->rclock - c;
int64_t rel = stream->deltaclock;
c = ev->rclock;
printf("%s %10ld %+10ld %c%c%c",

View File

@ -232,6 +232,7 @@ stream_step(struct stream *stream)
}
}
stream->deltaclock = clock - stream->lastclock;
stream->lastclock = clock;
return 0;

View File

@ -15,6 +15,7 @@ struct stream {
uint8_t *buf;
int64_t size;
int64_t lastclock;
int64_t deltaclock;
int64_t clock_offset;
heap_node_t hh;